git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t7005-editor: Use $SHELL_PATH in the editor scripts

From
Johannes Sixt <j6t@kdbg.org>
Date
Mar 25, 2009, 20:31 UTC
Message-ID
<200903252131.26561.j6t@kdbg.org>

The test sets up various shell scripts and uses them as commit message editors. On Windows, we need a shebang line in order to recognize the files as executable shell scripts. This adds it.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 This one and the next patch can go on top of js/windows-tests.
 Or you again pull from
   git://repo.or.cz/git/mingw/j6t.git for-junio
 -- Hannes
 t/t7005-editor.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 2f8404a..e83bc8f 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
+	#!$SHELL_PATH
 	echo "Edited by $i" >"\$1"
 	EOF
 	chmod +x e-$i.sh
-- 
1.6.2.1.224.g2225f
Next: Johannes Sixt
Message 1 of 2 in “t7005-editor: Use $SHELL_PATH in the editor scripts”
  1. 1/2 t7005-editor: Use $SHELL_PATH in the editor scriptsJohannes Sixt, Mar 25, 2009
  2. 2/2 t7502-commit: Skip SIGTERM test on WindowsJohannes Sixt, Mar 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.