summaryrefslogtreecommitdiff
path: root/t/t5551-http-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-02 15:56:08 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-02 15:56:08 -0700
commitaaec1ad08a3a9aa64eb803ac5763dc8820f86498 (patch)
tree7456ece9817e7fe53c7052dffb1f4925df250a2c /t/t5551-http-fetch.sh
parent527b1719f583ed56653b6d296422968e86f62d59 (diff)
parent5e2c7cd2c124da05d1807d5ffe61b2771bb755ee (diff)
downloadgit-aaec1ad08a3a9aa64eb803ac5763dc8820f86498.tar.gz
Merge branch 'jc/t5551-posix-sed-bre'
POSIX fix for a test script. * jc/t5551-posix-sed-bre: t5551: do not use unportable sed '\+'
Diffstat (limited to 't/t5551-http-fetch.sh')
-rwxr-xr-xt/t5551-http-fetch.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh
index b23efbbfd9..55a866af80 100755
--- a/t/t5551-http-fetch.sh
+++ b/t/t5551-http-fetch.sh
@@ -209,13 +209,17 @@ test_expect_success EXPENSIVE 'create 50,000 tags in the repo' '
# now assign tags to all the dangling commits we created above
tag=$("$PERL_PATH" -e "print \"bla\" x 30") &&
- sed -e "s/^:\(.\+\) \(.\+\)$/\2 refs\/tags\/$tag-\1/" <marks >>packed-refs
+ sed -e "s|^:\([^ ]*\) \(.*\)$|\2 refs/tags/$tag-\1|" <marks >>packed-refs
)
'
test_expect_success EXPENSIVE 'clone the 50,000 tag repo to check OS command line overflow' '
git clone $HTTPD_URL/smart/repo.git too-many-refs 2>err &&
- test_line_count = 0 err
+ test_line_count = 0 err &&
+ (
+ cd too-many-refs &&
+ test $(git for-each-ref refs/tags | wc -l) = 50000
+ )
'
stop_httpd