gajus/gitinfo

When checkout in a commit, getting branch or hash throws an exception

Open

#20 opened on Aug 30, 2019

 (0 comments) (0 reactions) (0 assignees)JavaScript (5 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (47 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi Gajus,

Thanks for the work on this repo, it is becoming quite useful.

I have detected that when we are checked out at a commit hash, the following methods throw an exception:

gitinfo.getBranchName();
gitinfo.getHeadSha();

Contributor guide