summaryrefslogtreecommitdiff
path: root/src/branch.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
committerVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
commitefc9e6700fabc91ea490fcc5ea034b51648c9e88 (patch)
tree08f13e7c4f17a3e35f7342d51363441833ac59f4 /src/branch.c
parent38fba8371e4c6c0042645a8bf2ba4aa2f2cdf730 (diff)
parent605da51a2cfd86901b6fa5f9cf71111a63ab4418 (diff)
downloadlibgit2-efc9e6700fabc91ea490fcc5ea034b51648c9e88.tar.gz
Merge pull request #1856 from libgit2/cmn/no-orphans
No such thing as an orphan branch
Diffstat (limited to 'src/branch.c')
-rw-r--r--src/branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/branch.c b/src/branch.c
index 7064fa7fc..3a745c127 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -585,7 +585,7 @@ int git_branch_is_head(
error = git_repository_head(&head, git_reference_owner(branch));
- if (error == GIT_EORPHANEDHEAD || error == GIT_ENOTFOUND)
+ if (error == GIT_EUNBORNBRANCH || error == GIT_ENOTFOUND)
return false;
if (error < 0)