From 96f438b98a7b8b3fec062ed6064d74074e5e1ff0 Mon Sep 17 00:00:00 2001 From: Mike Pape Date: Thu, 9 Aug 2007 16:18:50 -0400 Subject: [PATCH] In msys, chmod does not work. Using the shebang makes it "executable". Thanks to Dscho for figuring out the work around. Signed-off-by: Mike Pape --- t/t7005-editor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh index 28643b0da4..b21ced1bc2 100755 --- a/t/t7005-editor.sh +++ b/t/t7005-editor.sh @@ -7,6 +7,7 @@ test_description='GIT_EDITOR, core.editor, and stuff' for i in GIT_EDITOR core_editor EDITOR VISUAL vi do cat >e-$i.sh <<-EOF + #!/bin/sh echo "Edited by $i" >"\$1" EOF chmod +x e-$i.sh