diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-18 14:43:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-18 14:43:24 -0700 |
commit | a4d1797332bca95635168032c90765a41eacdc7a (patch) | |
tree | 70a934732e18e9420044f0c11abd88447e49e03b /t | |
parent | 0fa0514b9172186d018c884da296ac6705c3e07c (diff) | |
parent | 62854410449ec407a363e4bb1dc980a75aa1699d (diff) | |
download | git-a4d1797332bca95635168032c90765a41eacdc7a.tar.gz git-a4d1797332bca95635168032c90765a41eacdc7a.tar.xz |
Merge branch 'maint-1.6.0' into maint-1.6.1
* 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-x | t/t0001-init.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 5ac0a273a..e3d846420 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 |