diff options
author | 2015-03-02 10:29:53 +0100 | |
---|---|---|
committer | 2015-03-05 12:35:36 -0800 | |
commit | 074336e5ed4ff10577f22c6812e092e3f6607405 (patch) | |
tree | 3d9efa59a808ca5a226f679454e9640b94a3a092 /t/t3002-ls-files-dashpath.sh | |
parent | write_ref_sha1(): move write elision test to callers (diff) | |
download | tgif-074336e5ed4ff10577f22c6812e092e3f6607405.tar.xz |
lock_ref_sha1_basic(): do not set force_write for missing references
If a reference is missing, its SHA-1 will be null_sha1, which can't
possibly match a new value that ref_transaction_commit() is trying to
update it to. So there is no need to set force_write in this scenario.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3002-ls-files-dashpath.sh')
0 files changed, 0 insertions, 0 deletions