mirror of
https://github.com/git/git.git
synced 2026-02-07 00:05:02 +00:00
fixup! git tag --contains : avoid stack overflow
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user