File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ copy_commit()
311
311
GIT_COMMITTER_NAME \
312
312
GIT_COMMITTER_EMAIL \
313
313
GIT_COMMITTER_DATE
314
- (echo -n " $annotate " ; cat ) |
314
+ (printf " %s " " $annotate " ; cat ) |
315
315
git commit-tree " $2 " $3 # reads the rest of stdin
316
316
) || die " Can't copy commit $1 "
317
317
}
Original file line number Diff line number Diff line change @@ -182,9 +182,9 @@ test_expect_success 'merge new subproj history into subdir' '
182
182
test_expect_success ' Check that prefix argument is required for split' '
183
183
echo "You must provide the --prefix option." > expected &&
184
184
test_must_fail git subtree split > actual 2>&1 &&
185
- test_debug "echo -n expected: " &&
185
+ test_debug "printf ' " ' " ' expected: ' " ' " ' " &&
186
186
test_debug "cat expected" &&
187
- test_debug "echo -n actual: " &&
187
+ test_debug "printf ' " ' " ' actual: ' " ' " ' " &&
188
188
test_debug "cat actual" &&
189
189
test_cmp expected actual &&
190
190
rm -f expected actual
@@ -193,9 +193,9 @@ test_expect_success 'Check that prefix argument is required for split' '
193
193
test_expect_success ' Check that the <prefix> exists for a split' '
194
194
echo "' " '" ' non-existent-directory' " '" ' " does not exist\; use "' " '" ' git subtree add' " '" ' " > expected &&
195
195
test_must_fail git subtree split --prefix=non-existent-directory > actual 2>&1 &&
196
- test_debug "echo -n expected: " &&
196
+ test_debug "printf ' " ' " ' expected: ' " ' " ' " &&
197
197
test_debug "cat expected" &&
198
- test_debug "echo -n actual: " &&
198
+ test_debug "printf ' " ' " ' actual: ' " ' " ' " &&
199
199
test_debug "cat actual" &&
200
200
test_cmp expected actual
201
201
# rm -f expected actual
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ test_perf () {
161
161
echo " $test_count " >> " $perf_results_dir " /$base .subtests
162
162
echo " $1 " > " $perf_results_dir " /$base .$test_count .descr
163
163
if test -z " $verbose " ; then
164
- echo -n " perf $test_count - $1 :"
164
+ printf " %s " " perf $test_count - $1 :"
165
165
else
166
166
echo " perf $test_count - $1 :"
167
167
fi
@@ -170,7 +170,7 @@ test_perf () {
170
170
if test_run_perf_ " $2 "
171
171
then
172
172
if test -z " $verbose " ; then
173
- echo -n " $i "
173
+ printf " %s " " $i "
174
174
else
175
175
echo " * timing run $i /$GIT_PERF_REPEAT_COUNT :"
176
176
fi
You can’t perform that action at this time.
0 commit comments