Skip to contentSkip to conversation

contrib/rerere-train: use installed git-sh-setup

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 contrib/rerere-train: use installed git-sh-setup

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.

---

* I recently was helped greatly by this old script written in Sept 2008. We may want to integrate it to "git rerere" proper some day, but that is a separate topic.

 contrib/rerere-train.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/rerere-train.sh +1 -1
index 2cfe1b9..36b6fee 100755
@@ -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
 
Signature · 1 line
1.7.10.479.g65462