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