contrib/rerere-train: use installed git-sh-setup
authorJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 19:46:30 +0000 (12:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 19:50:38 +0000 (12:50 -0700)
Instead of sourcing git-sh-setup from random place that is on the $PATH,
explicitly source $(git --exec-path)/git-sh-setup.  As I do not personally
have any libexec/git-core directory on my $PATH like many other people, the
script will fail without this update.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/rerere-train.sh

index 2cfe1b936b0feef1bd40947ce6ab249f62a6ad55..36b6feebe00060e4d522c506f12d2848673dbee6 100755 (executable)
@@ -7,7 +7,7 @@ USAGE="$me rev-list-args"
 
 SUBDIRECTORY_OK=Yes
 OPTIONS_SPEC=
-. git-sh-setup
+. $(git --exec-path)/git-sh-setup
 require_work_tree
 cd_to_toplevel