Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[git] If there's no local branches, the history does not fail, so add…
… an additional check (fixes #366)
  • Loading branch information
gnodet committed Jun 9, 2013
1 parent 2e9e15c commit f204a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hawtio-git/src/main/java/io/hawt/git/GitFacade.java
Expand Up @@ -721,6 +721,7 @@ protected <T> T gitOperation(PersonIdent personIdent, Callable<T> callable) {
boolean hasHead = true;
try {
git.log().all().call();
hasHead = git.getRepository().getAllRefs().containsKey("HEAD");
} catch (NoHeadException e) {
hasHead = false;
}
Expand Down

0 comments on commit f204a23

Please sign in to comment.