summaryrefslogtreecommitdiffstats
path: root/0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch')
-rw-r--r--0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch b/0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
new file mode 100644
index 0000000..73ae548
--- /dev/null
+++ b/0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
@@ -0,0 +1,42 @@
+From 86c3e2b5188579bff1ff981910462ad5e563044b Mon Sep 17 00:00:00 2001
+From: Todd Zullinger <tmz@pobox.com>
+Date: Fri, 4 Jan 2013 11:54:21 -0500
+Subject: [PATCH] git-subtree: Use gitexecdir instead of libexecdir
+
+When the git subtree Makefile includes config.mak from the toplevel,
+it's useful to have the same variables set globally applied. Using
+gitexecdir instead of libexecdir respects the global settings more
+consistently.
+
+Remove the unused gitdir variable as well.
+---
+ contrib/subtree/Makefile | 5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
+index 36ae3e4..f87b945 100644
+--- a/contrib/subtree/Makefile
++++ b/contrib/subtree/Makefile
+@@ -2,9 +2,8 @@
+ -include ../../config.mak
+
+ prefix ?= /usr/local
++gitexecdir ?= $(prefix)/libexec/git-core
+ mandir ?= $(prefix)/share/man
+-libexecdir ?= $(prefix)/libexec/git-core
+-gitdir ?= $(shell git --exec-path)
+ man1dir ?= $(mandir)/man1
+
+ gitver ?= $(word 3,$(shell git --version))
+@@ -30,7 +29,7 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
+ doc: $(GIT_SUBTREE_DOC)
+
+ install: $(GIT_SUBTREE)
+- $(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(libexecdir)
++ $(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(gitexecdir)
+
+ install-doc: install-man
+
+--
+1.7.6
+