diff -r 3afde791dce1 -r 34a5f6c66bc5 tests/test-static-http.t --- 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 < [hooks] + > changegroup = sh -c "printenv.py changegroup" + > EOF $ hg pull pulling from static-http://localhost:$HGPORT/remote searching for changes