X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0001-init.sh;h=e3d846420dc09e7b24876b291b9e546ac0628ed3;hb=f29ac4f1b04c9cf84509e4a80f27f10b4373a446;hp=5ac0a273a94c033fbb7c48cb9a22e44c389e0f7d;hpb=44c33a5b9603fba7c9556512a72e4e392ba4ae2d;p=git.git 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