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

[PATCH] Fix Git install directory.

From
Pascal Obry <pascal@obry.net>
Date
Feb 5, 2009, 07:37 UTC
Message-ID
<a2633edd0902042337jaa9d1cfqee3c61f486adadd1@mail.gmail.com>

Remove trailing slash in gitexecdir and template_dir. With a trailing slash Git gets installed into a wrong location. If prefix is /usr/local it gets installed into /usr/local/usr/local. This is because the comparison in Makefile:

   ifeq ($(abspath $(gitexecdir)),$(gitexecdir))
      gitexec_instdir = $(gitexecdir)

is always wrong as abspath does remove the trailing slash. In this case the else part is used and prefix is added in front of the already absolute pathname:

   else
      gitexec_instdir = $(prefix)/$(gitexecdir)
Signed-off-by: Pascal Obry <pascal@obry.net>
---
 config.mak.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.mak.in b/config.mak.in
index 55b25c3..7cce0c1 100644
--- a/config.mak.in
+++ b/config.mak.in
@@ -13,9 +13,9 @@ TCLTK_PATH = @TCLTK_PATH@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 bindir = @bindir@
-gitexecdir = @libexecdir@/git-core/
+gitexecdir = @libexecdir@/git-core
 datarootdir = @datarootdir@
-template_dir = @datadir@/git-core/templates/
+template_dir = @datadir@/git-core/templates

 mandir=@mandir@
-- 
1.6.1.2.351.g80f18.dirty


-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Message 1 of 1 in “Fix Git install directory.”
  1. Fix Git install directory.Pascal Obry, Feb 5, 2009

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.