--- a/tests/test-rollback.t Sun Jun 10 14:14:52 2012 +0200
+++ b/tests/test-rollback.t Sun Jun 10 14:41:14 2012 +0200
@@ -110,12 +110,10 @@
same thing, but run $EDITOR
- $ cat > editor << '__EOF__'
- > #!/bin/sh
+ $ cat > editor.sh << '__EOF__'
> echo "another precious commit message" > "$1"
> __EOF__
- $ chmod +x editor
- $ HGEDITOR="'`pwd`'"/editor hg --config hooks.pretxncommit=false commit 2>&1
+ $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg --config hooks.pretxncommit=false commit 2>&1
transaction abort!
rollback completed
note: commit message saved in .hg/last-message.txt