Skip to contentSkip to conversation

t3301-notes: insert a shbang line in ./fake_editor.sh

PATCH In review Johannes Sixt 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t3301-notes: insert a shbang line in ./fake_editor.sh

From: Johannes Sixt <[email protected]>

This is required on Windows because git-notes is now a built-in rather than a shell script.

---
 t/t3301-notes.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
t/t3301-notes.sh +1 -0
index 90178f9..37b9687 100755
@@ -8,6 +8,7 @@ test_description='Test commit notes'
 . ./test-lib.sh
 
 cat > fake_editor.sh << \EOF
+#!/bin/sh
 echo "$MSG" > "$1"
 echo "$MSG" >& 2
 EOF
Signature · 1 line
1.7.0.1285.g1a907.dirty
#2 lore raw
In reply to Johannes Sixt

t/t3301-notes.sh test_description='Test commit notes' · line 14

Quoted 12 lines · Johannes Sixt
t/t3301-notes.sh +1 -0
index 90178f9..37b9687 100755
@@ -8,6 +8,7 @@ test_description='Test commit notes'
 . ./test-lib.sh
 
 cat > fake_editor.sh << \EOF
+#!/bin/sh
 echo "$MSG" > "$1"
 echo "$MSG" >& 2
 EOF

Thanks.

Shouldn't that be "#!$SHELL_PATH", though?

#3 lore raw
Quoted 1 line · Junio C Hamano

Shouldn't that be "#!$SHELL_PATH", though?

It doesn't matter, but the change would be larger because we do not want to expand $MSG.

-- Hannes