Skip to content

Commit 0bdae5f

Browse files
committed
Merge branch 'jc/t5551-posix-sed-bre' into maint
* jc/t5551-posix-sed-bre: t5551: do not use unportable sed '\+'
2 parents e9fee67 + 5e2c7cd commit 0bdae5f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/t5551-http-fetch.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,17 @@ test_expect_success EXPENSIVE 'create 50,000 tags in the repo' '
209209
210210
# now assign tags to all the dangling commits we created above
211211
tag=$("$PERL_PATH" -e "print \"bla\" x 30") &&
212-
sed -e "s/^:\(.\+\) \(.\+\)$/\2 refs\/tags\/$tag-\1/" <marks >>packed-refs
212+
sed -e "s|^:\([^ ]*\) \(.*\)$|\2 refs/tags/$tag-\1|" <marks >>packed-refs
213213
)
214214
'
215215

216216
test_expect_success EXPENSIVE 'clone the 50,000 tag repo to check OS command line overflow' '
217217
git clone $HTTPD_URL/smart/repo.git too-many-refs 2>err &&
218-
test_line_count = 0 err
218+
test_line_count = 0 err &&
219+
(
220+
cd too-many-refs &&
221+
test $(git for-each-ref refs/tags | wc -l) = 50000
222+
)
219223
'
220224

221225
stop_httpd

0 commit comments

Comments
 (0)