mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 07:20:07 +00:00
Fix incorrect precedence within git_repository_is_empty()
Reverts part of 9146f1e57e
.
This commit is contained in:
parent
19b9a09209
commit
4ab6a759f6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user