summaryrefslogtreecommitdiff
path: root/src/branch.c
diff options
context:
space:
mode:
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 516a87f31..30d29a60d 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -159,7 +159,7 @@ int git_branch_is_checked_out(const git_reference *branch)
return 0;
return git_repository_foreach_head(git_reference_owner(branch),
- branch_equals, (void *) branch) == 1;
+ branch_equals, 0, (void *) branch) == 1;
}
int git_branch_delete(git_reference *branch)