diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-12 00:14:51 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-11-12 00:14:51 +0100 |
commit | b1a3a70ed1ca45bb155ec4c10b40a047d27614f3 (patch) | |
tree | c6a6065e66ff80c7eb5665e2dd7bfe467f3b9655 /src/branch.c | |
parent | ef8871515bcb8af8d690609c086718bcaecbb5c6 (diff) | |
download | libgit2-b1a3a70ed1ca45bb155ec4c10b40a047d27614f3.tar.gz |
repository: Refine repository_head() error report
Diffstat (limited to 'src/branch.c')
-rw-r--r-- | src/branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/branch.c b/src/branch.c index 62c4adbf4..c6173caca 100644 --- a/src/branch.c +++ b/src/branch.c @@ -317,7 +317,7 @@ int git_branch_is_head( error = git_repository_head(&head, git_reference_owner(branch)); - if (error == GIT_EORPHANEDHEAD) + if (error == GIT_EORPHANEDHEAD || error == GIT_ENOTFOUND) return false; if (error < 0) |