mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 08:20:14 +00:00
Merge pull request #735 from gregier/development
Fix checking for the presence of a flag
This commit is contained in:
commit
1835c51f58
@ -387,7 +387,7 @@ int git_diff_foreach(
|
||||
if (error < 0)
|
||||
goto cleanup;
|
||||
|
||||
if ((delta->new_file.flags | GIT_DIFF_FILE_VALID_OID) == 0) {
|
||||
if ((delta->new_file.flags & GIT_DIFF_FILE_VALID_OID) == 0) {
|
||||
error = git_odb_hash(
|
||||
&delta->new_file.oid, new_data.data, new_data.len, GIT_OBJ_BLOB);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user