From: Michael Haggerty Date: Tue, 07 Jun 2016 11:50:07 GMT Subject: [PATCH 2/5] t1404: document function test_update_rejected Message-ID: <2561c38f85648144d665e870ca42c133a3a78909.1465299118.git.mhagger@alum.mit.edu> In-Reply-To: And declare its variables to be local. Signed-off-by: Michael Haggerty --- 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