Skip to content

Commit

Permalink
Escape Git's exec path in contrib/rerere-train.sh script
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Knittl-Frank authored and Jeff King committed Nov 20, 2015
1 parent af40944 commit 4573a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/rerere-train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4573a68

Please sign in to comment.