Escape Git's exec path in contrib/rerere-train.sh script
PATCH 1/1 Escape Git's exec path in contrib/rerere-train.sh script
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.
--- contrib/rerere-train.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/rerere-train.sh +1 -1
@@ -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
Signature · 1 line
2.6.0.rc0.134.g48a2a2a
Quoted 14 lines · Daniel Knittl-Frank
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 <[email protected]>--- contrib/rerere-train.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/rerere-train.sh +0
-0
contrib/rerere-train.sh USAGE="$me rev-list-args" · line 10
Quoted 5 lines
contrib/rerere-train.sh +1
-1@@ -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"
Thanks, this makes sense.
The "normal" scripts just use ". git-sh-setup", but they have the benefit of being run under the "git" wrapper, so the exec-path is already in their PATH. This one is meant to be used directly, so it needs this.
-Peff