X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Ft5541-http-push-smart.sh;h=db1998873cee18a74d98d13963ad640bc1f8abbe;hb=02b2b76bdf76318ba343a04d453f8ee14fc08517;hp=73af16f481836d3cbfa8a2f82c260d10a3a43c09;hpb=300071e7b6bd26add4bb9bbe6175f0759a47500c;p=platform%2Fupstream%2Fgit.git diff --git a/t/t5541-http-push-smart.sh b/t/t5541-http-push-smart.sh index 73af16f..db19988 100755 --- a/t/t5541-http-push-smart.sh +++ b/t/t5541-http-push-smart.sh @@ -323,5 +323,20 @@ test_expect_success 'push into half-auth-complete requires password' ' test_cmp expect actual ' +run_with_limited_cmdline () { + (ulimit -s 128 && "$@") +} + +test_lazy_prereq CMDLINE_LIMIT 'run_with_limited_cmdline true' + +test_expect_success CMDLINE_LIMIT 'push 2000 tags over http' ' + sha1=$(git rev-parse HEAD) && + test_seq 2000 | + sort | + sed "s|.*|$sha1 refs/tags/really-long-tag-name-&|" \ + >.git/packed-refs && + run_with_limited_cmdline git push --mirror +' + stop_httpd test_done