tests/test-default-push.t
changeset 27437 52ae742c8035
parent 27266 4dccc37b87bd
child 27570 44f717c87903
--- a/tests/test-default-push.t	Wed Dec 16 13:33:43 2015 -0500
+++ b/tests/test-default-push.t	Wed Dec 16 17:17:36 2015 -0500
@@ -75,10 +75,16 @@
   $ hg -q clone a pushurlsource
   $ hg -q clone a pushurldest
   $ cd pushurlsource
+
+Windows needs a leading slash to make a URL that passes all of the checks
+  $ WD=`pwd`
+#if windows
+  $ WD="/$WD"
+#endif
   $ cat > .hg/hgrc << EOF
   > [paths]
   > default = https://example.com/not/relevant
-  > default:pushurl = file://`pwd`/../pushurldest
+  > default:pushurl = file://$WD/../pushurldest
   > EOF
 
   $ touch pushurl