Permalink
Browse files

Fix: put auto-detected Makefile path into a variable, but keep

GIT_EXEC_PATH overrideable via Makefile command arguments.
  • Loading branch information...
nvie committed Feb 21, 2010
1 parent 6d74722 commit 677334c60a23281e540c77a125ffb7426980ab2e
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
@@ -1,4 +1,5 @@
-GIT_EXEC_PATH=`git --exec-path 2>/dev/null || echo /usr/libexec/git-core`
+AUTO_DETECTED_GIT_EXEC_PATH := $(shell git --exec-path 2>/dev/null || echo /usr/libexec/git-core)
+GIT_EXEC_PATH=$(AUTO_DETECTED_GIT_EXEC_PATH)
# files that need mode 755
EXEC_FILES=git-flow

0 comments on commit 677334c

Please sign in to comment.