Fix checking for the presence of a flag

This commit is contained in:
Garrett Regier 2012-05-27 16:47:56 -07:00
parent 4c977a61e5
commit 2ab9dcbd62

View File

@ -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);