]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
test-path-utils: offer to run a protectNTFS/protectHFS benchmark
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index a5abca04b7888e1813942136955f0f7dd25efaa9..7edcf6c91f38e3d07b42939e35dbcebb3662261e 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -921,6 +921,8 @@ int ref_transaction_update(struct ref_transaction *transaction,
                return -1;
        }
 
+       flags &= REF_TRANSACTION_UPDATE_ALLOWED_FLAGS;
+
        flags |= (new_sha1 ? REF_HAVE_NEW : 0) | (old_sha1 ? REF_HAVE_OLD : 0);
 
        ref_transaction_add_update(transaction, refname, flags,