summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2013-08-28 22:51:44 -0700
committerJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2013-08-28 22:51:57 -0700
commit4ab6a759f63caa75ea716154887fc0a94de01b6e (patch)
tree17923ccd9808f3dee196cc6f76270d0dced275d7 /src/repository.c
parent19b9a0920987f07d05040b3a067b1599e38f6013 (diff)
downloadlibgit2-4ab6a759f63caa75ea716154887fc0a94de01b6e.tar.gz
Fix incorrect precedence within git_repository_is_empty()
Reverts part of 9146f1e57ec4f2b6fa293c78d54f1383464ff5be.
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index 99ac56ef9..e5f23e4e4 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1500,7 +1500,7 @@ int git_repository_is_empty(git_repository *repo)
if (git_reference_lookup(&head, repo, GIT_HEAD_FILE) < 0)
return -1;
- if (!((error = git_reference_type(head)) == GIT_REF_SYMBOLIC))
+ if (!(error = (git_reference_type(head) == GIT_REF_SYMBOLIC)))
goto cleanup;
if (!(error = (strcmp(