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

Re: [PATCH] Install git-sh-setup.sh into $(prefix)/share/git-core. Call with explicit path.

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 8, 2006, 19:37 UTC
Message-ID
<20061208193718.GA11906@soma>
In-Reply-To
<elc6g3$v1m$1@sea.gmane.org>
Han-Wen Nienhuys <hanwen@xs4all.nl> wrote:
> 
> git-sh-setup isn't a 'normal' binary, in that it should be called by
> bash only and not run in a subshell. Therefore, it should not be installed
> in a executable directory, but rather in $prefix/share/git-core/

This seems to break existing hooks, or at least old repositories can be stuck using an old version of git-sh-setup in those hooks.

You could to add GIT_datadir to PATH before invoking hooks for existing ones to work, or write some sort of conversion script...

Show 24 quoted lines
> ---
>  Makefile            |   10 ++++++++--
>  git-am.sh           |    2 +-
>  git-applymbox.sh    |    2 +-
>  git-applypatch.sh   |    2 +-
>  git-bisect.sh       |    2 +-
>  git-checkout.sh     |    2 +-
>  git-clean.sh        |    2 +-
>  git-commit.sh       |    2 +-
>  git-fetch.sh        |    2 +-
>  git-instaweb.sh     |    2 +-
>  git-lost-found.sh   |    2 +-
>  git-merge.sh        |    2 +-
>  git-pull.sh         |    2 +-
>  git-quiltimport.sh  |    2 +-
>  git-rebase.sh       |    2 +-
>  git-repack.sh       |    2 +-
>  git-request-pull.sh |    2 +-
>  git-reset.sh        |    2 +-
>  git-resolve.sh      |    2 +-
>  git-revert.sh       |    2 +-
>  git-tag.sh          |    2 +-
>  git-verify-tag.sh   |    2 +-
>  22 files changed, 29 insertions(+), 23 deletions(-)
You shoudl probably change these, too:

templates/hooks--pre-applypatch:. git-sh-setup templates/hooks--applypatch-msg:. git-sh-setup

Previous: Han-Wen NienhuysNext: Junio C Hamano
Message 4 of 9 in “Install git-sh-setup.sh into $(prefix)/share/git-core. Call with explicit path.”
  1. Install git-sh-setup.sh into $(prefix)/share/git-core. Call with explicit path.Han-Wen Nienhuys, Dec 8, 2006
  2. Nguyen Thai Ngoc DuyDec 8, 2006
  3. Han-Wen NienhuysDec 8, 2006
  4. Eric WongDec 8, 2006
  5. Junio C HamanoDec 8, 2006
  6. Han-Wen NienhuysDec 9, 2006
  7. Junio C HamanoDec 9, 2006
  8. Han-Wen NienhuysDec 9, 2006
  9. Junio C HamanoDec 10, 2006

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.