summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-18 20:39:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-18 20:39:52 (GMT)
commitd890d3f99635de7963effd1436148112ef7a52b7 (patch)
tree71138c5cf3cdd476164ebb0229c0f1eacc907588 /t
parent43be7a782e08489062a3b8130cbb7ffbe8807191 (diff)
parent62854410449ec407a363e4bb1dc980a75aa1699d (diff)
downloadgit-d890d3f99635de7963effd1436148112ef7a52b7.zip
git-d890d3f99635de7963effd1436148112ef7a52b7.tar.gz
git-d890d3f99635de7963effd1436148112ef7a52b7.tar.bz2
Merge branch 'maint-1.6.0' into maint
* maint-1.6.0: doc/git-daemon: add missing arguments to options init: Do not segfault on big GIT_TEMPLATE_DIR environment variable
Diffstat (limited to 't')
-rwxr-xr-xt/t0001-init.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index 5ac0a27..e3d8464 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -199,4 +199,13 @@ test_expect_success 'init honors global core.sharedRepository' '
x`git config -f shared-honor-global/.git/config core.sharedRepository`
'
+test_expect_success 'init rejects insanely long --template' '
+ (
+ insane=$(printf "x%09999dx" 1) &&
+ mkdir test &&
+ cd test &&
+ test_must_fail git init --template=$insane
+ )
+'
+
test_done