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

[PATCH] Escape Git's exec path in contrib/rerere-train.sh script

From
Daniel Knittl-Frank <knittl89@googlemail.com>
Date
Nov 8, 2015, 11:27 UTC
Message-ID
<1446982075-26161-1-git-send-email-knittl89+git@googlemail.com>

Whitespace can cause the source command to fail. This is usually not a problem on Unix systems, but on Windows Git is likely to be installed under "C:/Program Files/", thus rendering the script broken.

Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
---
 contrib/rerere-train.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/rerere-train.sh b/contrib/rerere-train.sh
index 36b6fee..52ad9e4 100755
--- a/contrib/rerere-train.sh
+++ b/contrib/rerere-train.sh
@@ -7,7 +7,7 @@ USAGE="$me rev-list-args"
 
 SUBDIRECTORY_OK=Yes
 OPTIONS_SPEC=
-. $(git --exec-path)/git-sh-setup
+. "$(git --exec-path)/git-sh-setup"
 require_work_tree
 cd_to_toplevel
 
-- 
2.6.0.rc0.134.g48a2a2a
Next: Jeff King
Message 1 of 2 in “Escape Git's exec path in contrib/rerere-train.sh script”
  1. Escape Git's exec path in contrib/rerere-train.sh scriptDaniel Knittl-Frank, Nov 8, 2015
  2. Jeff KingNov 20, 2015

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.