``` Cannot read the commit SHA of the current HEAD from the /home/ubuntu/gitrepo/.git/refs/heads/master. ``` Seems like `git gc` is emptying the refs/heads dir and gitinfo fails to get the commit sha