tests/test-bookmarks-pushpull.t
branchstable
changeset 35815 b5df7fcf5d80
parent 35811 e35320ce8043
child 36789 09b58af83d44
--- a/tests/test-bookmarks-pushpull.t	Thu Feb 01 16:46:12 2018 +0800
+++ b/tests/test-bookmarks-pushpull.t	Wed Jan 31 23:01:44 2018 -0500
@@ -1202,9 +1202,13 @@
 
 Forbid bookmark move on the server
 
+  $ cat << EOF >> $TESTDIR/no-bm-move.sh
+  > #!/bin/sh
+  > echo \$HG_NAMESPACE | grep -v bookmarks
+  > EOF
   $ cat << EOF >> server/.hg/hgrc
   > [hooks]
-  > prepushkey.no-bm-move= echo \$HG_NAMESPACE | grep -v bookmarks
+  > prepushkey.no-bm-move= sh $TESTDIR/no-bm-move.sh
   > EOF
 
 pushing changeset is okay