[PATCH 2/5] t1404: document function test_update_rejected
And declare its variables to be local.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
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