Fix incorrect precedence within git_repository_is_empty()

Reverts part of 9146f1e57e.
This commit is contained in:
Justin Spahr-Summers 2013-08-28 22:51:44 -07:00
parent 19b9a09209
commit 4ab6a759f6

View File

@ -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(