Makefile: fix the "built from commit" code
[gitweb.git] / t / t5601-clone.sh
index 66784fc8ff2ec8cf24cdb70348e70995c333d233..0f895478f02bcf4cc4408ce065e79e0314b66793 100755 (executable)
@@ -316,6 +316,7 @@ test_expect_success 'set up ssh wrapper' '
 '
 
 copy_ssh_wrapper_as () {
+       rm -f "${1%$X}$X" &&
        cp "$TRASH_DIRECTORY/ssh$X" "${1%$X}$X" &&
        test_when_finished "rm $(git rev-parse --sq-quote "${1%$X}$X")" &&
        GIT_SSH="${1%$X}$X" &&