Skip to content

Commit b068d9a

Browse files
derrickstoleegitster
authored andcommitted
t6501: use 'git gc' in quiet mode
t6501-freshen-objects.sh sends the standard error from 'git gc' to a file and verifies that it is empty. This is intended as a way to ensure no warnings are written during the operation. However, as the commit-graph is added as a step to 'git gc', its progress will appear in the output. Pass the '-q' argument to avoid a failing test case when progress is written. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7211b9e commit b068d9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t6501-freshen-objects.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test_expect_success 'do not complain about existing broken links (commit)' '
137137
some message
138138
EOF
139139
commit=$(git hash-object -t commit -w broken-commit) &&
140-
git gc 2>stderr &&
140+
git gc -q 2>stderr &&
141141
verbose git cat-file -e $commit &&
142142
test_must_be_empty stderr
143143
'
@@ -147,7 +147,7 @@ test_expect_success 'do not complain about existing broken links (tree)' '
147147
100644 blob 0000000000000000000000000000000000000003 foo
148148
EOF
149149
tree=$(git mktree --missing <broken-tree) &&
150-
git gc 2>stderr &&
150+
git gc -q 2>stderr &&
151151
git cat-file -e $tree &&
152152
test_must_be_empty stderr
153153
'
@@ -162,7 +162,7 @@ test_expect_success 'do not complain about existing broken links (tag)' '
162162
this is a broken tag
163163
EOF
164164
tag=$(git hash-object -t tag -w broken-tag) &&
165-
git gc 2>stderr &&
165+
git gc -q 2>stderr &&
166166
git cat-file -e $tag &&
167167
test_must_be_empty stderr
168168
'

0 commit comments

Comments
 (0)