git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 30, 2012, 19:46 UTC
Message-ID
<7vwr4xdmuh.fsf@alter.siamese.dyndns.org>

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>
---
 * 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(-)
diff --git a/contrib/rerere-train.sh b/contrib/rerere-train.sh
index 2cfe1b9..36b6fee 100755
--- a/contrib/rerere-train.sh
+++ b/contrib/rerere-train.sh
@@ -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
 
-- 
1.7.10.479.g65462
Message 1 of 1 in “contrib/rerere-train: use installed git-sh-setup”
  1. contrib/rerere-train: use installed git-sh-setupJunio C Hamano, Apr 30, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.