Skip to content

Commit ea1e133

Browse files
committed
Merge branch 'jc/t5601-copy-workaround' into next
A (possibly flakey) test fix. * jc/t5601-copy-workaround: t5601: rm the target file of cp that could still be executing
2 parents 835fe09 + cff48cc commit ea1e133

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t5601-clone.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ test_expect_success 'clone checking out a tag' '
308308

309309
setup_ssh_wrapper () {
310310
test_expect_success 'setup ssh wrapper' '
311+
rm -f "$TRASH_DIRECTORY/ssh$X" &&
311312
cp "$GIT_BUILD_DIR/t/helper/test-fake-ssh$X" \
312313
"$TRASH_DIRECTORY/ssh$X" &&
313314
GIT_SSH="$TRASH_DIRECTORY/ssh$X" &&
@@ -318,6 +319,7 @@ setup_ssh_wrapper () {
318319
}
319320

320321
copy_ssh_wrapper_as () {
322+
rm -f "${1%$X}$X" &&
321323
cp "$TRASH_DIRECTORY/ssh$X" "${1%$X}$X" &&
322324
GIT_SSH="${1%$X}$X" &&
323325
export GIT_SSH

0 commit comments

Comments
 (0)