And declare its variables to be local. Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx> --- t/t1404-update-ref-errors.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t1404-update-ref-errors.sh b/t/t1404-update-ref-errors.sh index 2818460..a62d62a 100755 --- a/t/t1404-update-ref-errors.sh +++ b/t/t1404-update-ref-errors.sh @@ -3,7 +3,11 @@ test_description='Test git update-ref error handling' . ./test-lib.sh +# Create some references, perhaps run pack-refs --all, then try to +# create some more references. Ensure that the second creation fails +# with the correct error message. test_update_rejected () { + local prefix before pack create error && prefix="$1" && before="$2" && pack="$3" && -- 2.8.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html