diff --git a/stdout.master.3.txt b/stdout.master.3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d69c690cc6f933871e088be1f0534cd093713c3e
--- /dev/null
+++ b/stdout.master.3.txt
@@ -0,0 +1 @@
+Cloning into 'master-clone'...
diff --git a/stdout.mirror.3.txt b/stdout.mirror.3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3f5afca3bd53d9d75a6d15414fdf95695ec4ffa6
--- /dev/null
+++ b/stdout.mirror.3.txt
@@ -0,0 +1 @@
+Cloning into 'mirror-clone'...
diff --git a/test-git-reclone.sh b/test-git-reclone.sh
index 36027736cf01e819cf9999f114d8d1553e22f881..0cc66d9c6b66453938ed988143114a04bd254406 100755
--- a/test-git-reclone.sh
+++ b/test-git-reclone.sh
@@ -12,9 +12,18 @@ esac
 good=0
 cd test-git || exit 1
 rm -rf $what-clone
+
+if [ -f use_ssh ]
+then
+    use_ssh=ssh://localhost/`pwd`/
+else
+    use_ssh=
+fi
+
+
 while :
 do
-    git clone $what.git $what-clone >$what.out 2>$what.err || exit 1
+    git clone ${use_ssh}$what.git $what-clone >$what.out 2>$what.err || exit 1
     if [ -s $what.err ]
     then
 	echo unexpected stderr from git clone:
diff --git a/test-git-setup.sh b/test-git-setup.sh
index 6e4c58ca74b7b2835ba3f0998804b953c3f4cd21..5e13df6f2d0ff9e21100bff4d2bc68fc9cbed27e 100755
--- a/test-git-setup.sh
+++ b/test-git-setup.sh
@@ -1,12 +1,21 @@
 #!/bin/sh
 mkdir test-git || exit 1
 cd test-git
+
+if [ x"$1" = x"--use-ssh" ]
+then
+    touch use_ssh
+    use_ssh=ssh://localhost/`pwd`/
+else
+    use_ssh=
+fi
+
 mkdir master.git
 (cd master.git && git init --bare)
-git clone master.git committer
+git clone ${use_ssh}master.git committer
 (cd committer &&
     touch foo &&
     git add foo &&
     git commit -m"Initial commit" &&
     git push origin master)
-git clone --mirror master.git mirror.git
+git clone --mirror ${use_ssh}master.git mirror.git