@@ -73,7 +73,7 @@ get_list_of_oids () {
73
73
74
74
if test $# -eq 1
75
75
then
76
- actual_nr=$(( $( wc - l < "$OIDS_FILE ") ) )
76
+ actual_nr=$( wc -l < " $OIDS_FILE " )
77
77
if test $actual_nr -lt $1
78
78
then
79
79
echo " get_list_of_oids: insufficient data. Need $1 OIDs."
@@ -93,7 +93,7 @@ get_list_of_commit_and_tree_oids () {
93
93
94
94
if test $# -eq 1
95
95
then
96
- actual_nr=$(( $( wc - l < "$OIDS_CT_FILE ") ) )
96
+ actual_nr=$( wc -l < " $OIDS_CT_FILE " )
97
97
if test $actual_nr -lt $1
98
98
then
99
99
echo " get_list_of_commit_and_tree_oids: insufficient data. Need $1 OIDs."
@@ -123,6 +123,8 @@ test_expect_success 'setup repos' '
123
123
# test_commit() creates commits, trees, tags, and blobs and leave
124
124
# them loose.
125
125
#
126
+ test_config gc.auto 0 &&
127
+ #
126
128
test_commit -C "$REPO_SRC" file1.txt &&
127
129
test_commit -C "$REPO_SRC" file2.txt &&
128
130
test_commit -C "$REPO_SRC" file3.txt &&
@@ -288,7 +290,7 @@ verify_connection_count () {
288
290
expected_nr=1
289
291
fi
290
292
291
- actual_nr=$(( $( grep "Connection from" "$SERVER_LOG " | wc - l) ) )
293
+ actual_nr=$( grep -c " Connection from" " $SERVER_LOG " )
292
294
293
295
if test $actual_nr -ne $expected_nr
294
296
then
@@ -339,7 +341,7 @@ verify_received_packfile_count () {
339
341
expected_nr=1
340
342
fi
341
343
342
- actual_nr=$(( $( grep "packfile " OUT.output | wc - l) ) )
344
+ actual_nr=$( grep -c " packfile " < OUT.output)
343
345
344
346
if test $actual_nr -ne $expected_nr
345
347
then
0 commit comments