Commit 4ab6a759f63caa75ea716154887fc0a94de01b6e

Justin Spahr-Summers 2013-08-28T22:51:44

Fix incorrect precedence within git_repository_is_empty() Reverts part of 9146f1e57ec4f2b6fa293c78d54f1383464ff5be.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index 99ac56e..e5f23e4 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(