commit | dd720bea91f948a8231d48bfce7d13ba5731f74e | [log] [tgz] |
---|---|---|
author | Vincent Driessen <vincent@datafox.nl> | 周三 1月 27 00:00:09 2010 +0100 |
committer | Vincent Driessen <vincent@datafox.nl> | 周三 1月 27 00:02:42 2010 +0100 |
tree | 961529e087a36fb7a2fc15ac9c318db21973225b | |
parent | a7d4527ff39626109dc534ae57d91cc0c1f57134 [diff] [blame] |
Dynamically collect the true git exec path and only if that can not be found, use the default. Variable GIT_EXEC_PATH remains overwritable explicitly when given as a command to 'make'.
diff --git a/Makefile b/Makefile index 35cf757..7eb22fb 100644 --- a/Makefile +++ b/Makefile
@@ -1,4 +1,4 @@ -GIT_EXEC_PATH=/usr/libexec/git-core +GIT_EXEC_PATH=`git --exec-path 2>/dev/null || echo /usr/libexec/git-core` all: @echo "There is only one target here: install"