Commit 4ab6a759 by Justin Spahr-Summers

Fix incorrect precedence within git_repository_is_empty()

Reverts part of 9146f1e5.
parent 19b9a092
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment