@@ -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."
@@ -122,6 +122,8 @@ test_expect_success 'setup repos' '
122
122
# test_commit() creates commits, trees, tags, and blobs and leave
123
123
# them loose.
124
124
#
125
+ test_config gc.auto 0 &&
126
+ #
125
127
test_commit -C "$REPO_SRC" file1.txt &&
126
128
test_commit -C "$REPO_SRC" file2.txt &&
127
129
test_commit -C "$REPO_SRC" file3.txt &&
@@ -286,7 +288,7 @@ verify_connection_count () {
286
288
expected_nr=1
287
289
fi
288
290
289
- actual_nr=$(( $( grep "Connection from" "$SERVER_LOG " | wc - l) ) )
291
+ actual_nr=$( grep -c " Connection from" " $SERVER_LOG " )
290
292
291
293
if test $actual_nr -ne $expected_nr
292
294
then
@@ -337,7 +339,7 @@ verify_received_packfile_count () {
337
339
expected_nr=1
338
340
fi
339
341
340
- actual_nr=$(( $( grep "packfile " OUT.output | wc - l) ) )
342
+ actual_nr=$( grep -c " packfile " < OUT.output)
341
343
342
344
if test $actual_nr -ne $expected_nr
343
345
then
0 commit comments