From 2ab9dcbd6228741d31f9e823283030c0b42555b4 Mon Sep 17 00:00:00 2001 From: Garrett Regier Date: Sun, 27 May 2012 16:47:56 -0700 Subject: [PATCH] Fix checking for the presence of a flag --- src/diff_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff_output.c b/src/diff_output.c index ba7ef8245..5ffa641c4 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -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);