aboutsummaryrefslogtreecommitdiff
path: root/t/t1404-update-ref-errors.sh
Commit message (Collapse)AuthorAge
* lock_ref_for_update(): make error handling more uniformMichael Haggerty2016-06-20
| | | | | | | | | | | 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>
* t1404: add more tests of update-ref error handlingMichael Haggerty2016-06-20
| | | | | | | 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>
* t1404: document function test_update_rejectedMichael Haggerty2016-06-20
| | | | | Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* t1404: remove "prefix" argument to test_update_rejectedMichael Haggerty2016-06-20
| | | | | | | | | | | | | 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>
* t1404: rename file to t1404-update-ref-errors.shMichael Haggerty2016-06-20
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>