Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fixup! git tag --contains : avoid stack overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
  • Loading branch information
kasal committed Apr 22, 2014
1 parent c63d196 commit c68e27d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/t7004-tag.sh
Expand Up @@ -1380,11 +1380,12 @@ test_expect_success 'multiple --points-at are OR-ed together' '
test_cmp expect actual
'
test_lazy_prereq BASH 'bash --version'
ulimit_stack="ulimit -s 64"
test_lazy_prereq ULIMIT 'bash -c "'"$ulimit_stack"'"'
>expect
# we require bash for its 'ulimit' builtin
test_expect_success BASH '--contains works in a deep repo' '
test_expect_success ULIMIT '--contains works in a deep repo' '
i=1 &&
while test $i -lt 1000
do
Expand All @@ -1398,7 +1399,7 @@ EOF"
done | git fast-import &&
git checkout master &&
git tag far-far-away HEAD^ &&
bash -c "ulimit -s 64 && git tag --contains HEAD >actual" &&
bash -c "'"$ulimit_stack"' && git tag --contains HEAD >actual" &&
test_cmp expect actual
'
Expand Down

0 comments on commit c68e27d

Please sign in to comment.