Commit 1835c51f by Russell Belfer

Merge pull request #735 from gregier/development

Fix checking for the presence of a flag
parents 4c977a61 2ab9dcbd
...@@ -387,7 +387,7 @@ int git_diff_foreach( ...@@ -387,7 +387,7 @@ int git_diff_foreach(
if (error < 0) if (error < 0)
goto cleanup; 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( error = git_odb_hash(
&delta->new_file.oid, new_data.data, new_data.len, GIT_OBJ_BLOB); &delta->new_file.oid, new_data.data, new_data.len, GIT_OBJ_BLOB);
......
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