diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-07 09:29:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-20 11:49:00 -0700 |
commit | e3f510393c9d373f2969badc2b8afe179803a0fa (patch) | |
tree | 57c2b89dbd15141a4389ad0c463c28a9762c1d28 /credential-store.c | |
parent | t1404: add more tests of update-ref error handling (diff) | |
download | tgif-e3f510393c9d373f2969badc2b8afe179803a0fa.tar.xz |
lock_ref_for_update(): make error handling more uniform
To aid the effort, extract a new function, check_old_oid(), and use it
in the two places where the read value of the reference has to be
checked against update->old_sha1.
Update tests to reflect the improvements.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential-store.c')
0 files changed, 0 insertions, 0 deletions