diff --git a/tests/test-git-clone.t b/tests/test-git-clone.t
index 485590df16198688902758fca03997666bf7fd02_dGVzdHMvdGVzdC1naXQtY2xvbmUudA==..c9c4ec7d106bc4da94838bcd1f979aec5750d176_dGVzdHMvdGVzdC1naXQtY2xvbmUudA== 100644
--- a/tests/test-git-clone.t
+++ b/tests/test-git-clone.t
@@ -51,6 +51,6 @@
   abort: potentially unsafe hostname: '-oProxyCommand=rm${IFS}nonexistent'
   [255]
   $ hg clone 'git+ssh://fakehost|rm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob)
+  ssh: * fakehost%7?rm%24%7????%7?nonexistent* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg clone 'git+ssh://fakehost%7Crm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
@@ -55,4 +55,4 @@
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg clone 'git+ssh://fakehost%7Crm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob)
+  ssh: * fakehost%7?rm%24%7????%7?nonexistent* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.
diff --git a/tests/test-pull.t b/tests/test-pull.t
index 485590df16198688902758fca03997666bf7fd02_dGVzdHMvdGVzdC1wdWxsLnQ=..c9c4ec7d106bc4da94838bcd1f979aec5750d176_dGVzdHMvdGVzdC1wdWxsLnQ= 100644
--- a/tests/test-pull.t
+++ b/tests/test-pull.t
@@ -366,6 +366,6 @@
   abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent'
   [255]
   $ hg pull 'git+ssh://fakehost|shellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7cshellcommand* (glob)
+  ssh: * fakehost%7?shellcommand* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg pull 'git+ssh://fakehost%7Cshellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn:
@@ -370,4 +370,4 @@
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg pull 'git+ssh://fakehost%7Cshellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7cshellcommand* (glob)
+  ssh: * fakehost%7?shellcommand* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.
diff --git a/tests/test-push.t b/tests/test-push.t
index 485590df16198688902758fca03997666bf7fd02_dGVzdHMvdGVzdC1wdXNoLnQ=..c9c4ec7d106bc4da94838bcd1f979aec5750d176_dGVzdHMvdGVzdC1wdXNoLnQ= 100644
--- a/tests/test-push.t
+++ b/tests/test-push.t
@@ -211,6 +211,6 @@
   abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent'
   [255]
   $ hg push 'git+ssh://fakehost|rm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7crm%20nonexistent* (glob)
+  ssh: * fakehost%7?rm%20nonexistent* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg push 'git+ssh://fakehost%7Crm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
@@ -215,4 +215,4 @@
   abort: git remote error: The remote server unexpectedly closed the connection.
   $ hg push 'git+ssh://fakehost%7Crm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
-  ssh: * fakehost%7crm%20nonexistent* (glob)
+  ssh: * fakehost%7?rm%20nonexistent* (glob)
   abort: git remote error: The remote server unexpectedly closed the connection.