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. Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com> Signed-off-by: Jeff King <peff@peff.net>
Daniel Knittl-Frank committed
Nov 8, 2015 at 12:27 UTC
4573a68e9b340107928194ecb8aba8d803a2ec78
1 file changed
+1
-1
contrib/rerere-train.sh
+1
-1
@@ -7,7 +7,7 @@ USAGE="$me rev-list-args"
7
8
SUBDIRECTORY_OK=Yes
9
OPTIONS_SPEC=
10
-. $(git --exec-path)/git-sh-setup
10
+. "$(git --exec-path)/git-sh-setup"
11
require_work_tree
12
cd_to_toplevel
13