summaryrefslogtreecommitdiff
path: root/t/t1404-update-ref-errors.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-06-20lock_ref_for_update(): make error handling more uniformLibravatar Michael Haggerty1-7/+7
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>
2016-06-20t1404: add more tests of update-ref error handlingLibravatar Michael Haggerty1-2/+219
Some of the error messages will be improved in subsequent commits. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-06-20t1404: document function test_update_rejectedLibravatar Michael Haggerty1-0/+10
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-06-20t1404: remove "prefix" argument to test_update_rejectedLibravatar Michael Haggerty1-14/+13
The tests already set a variable called prefix and passed its value as the first argument to this function. The old argument handling was overwriting the global variable with its same value rather than creating a local variable. So change test_update_rejected to refer to the global variable rather than taking the prefix as an argument. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-06-20t1404: rename file to t1404-update-ref-errors.shLibravatar Michael Haggerty1-0/+181
I want to broaden the scope of this test file, so rename it accordingly. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>