tests/test-static-http.t
branchstable
changeset 30234 34a5f6c66bc5
parent 29514 280528245ecf
child 31741 728d37353e1e
--- a/tests/test-static-http.t	Thu Oct 27 20:06:33 2016 +0200
+++ b/tests/test-static-http.t	Sat Oct 29 02:44:45 2016 +0900
@@ -53,8 +53,10 @@
 
   $ rm .hg/cache/*
   $ cd ../local
-  $ echo '[hooks]' >> .hg/hgrc
-  $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc
+  $ cat >> .hg/hgrc <<EOF
+  > [hooks]
+  > changegroup = sh -c "printenv.py changegroup"
+  > EOF
   $ hg pull
   pulling from static-http://localhost:$HGPORT/remote
   searching for changes