diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-04-18 14:45:59 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-04-18 14:45:59 -0700 |
| commit | cef5775b9f640beb51b07f8a296cfcc9b11b9744 (patch) | |
| tree | 1bc646b4ffaa3d8cdd8bae0262e7eae839faa728 /t/t0001-init.sh | |
| parent | Merge branch 'ac/color-graph' (diff) | |
| parent | Describe fixes since 1.6.2.3 (diff) | |
| download | git-cef5775b9f640beb51b07f8a296cfcc9b11b9744.tar.gz git-cef5775b9f640beb51b07f8a296cfcc9b11b9744.zip | |
Merge branch 'maint'
* maint:
Describe fixes since 1.6.2.3
doc/git-daemon: add missing arguments to max-connections option
doc/git-daemon: add missing arguments to options
init: Do not segfault on big GIT_TEMPLATE_DIR environment variable
imap-send: use correct configuration variable in documentation
Diffstat (limited to 't/t0001-init.sh')
| -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 5ac0a273a9..e3d846420d 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 |
