about summary refs log tree commit diff
path: root/third_party/git/check_bindir
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/check_bindir')
-rwxr-xr-xthird_party/git/check_bindir13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/git/check_bindir b/third_party/git/check_bindir
new file mode 100755
index 0000000000..623eadcbb7
--- /dev/null
+++ b/third_party/git/check_bindir
@@ -0,0 +1,13 @@
+#!/bin/sh
+bindir="$1"
+gitexecdir="$2"
+gitcmd="$3"
+if test "$bindir" != "$gitexecdir" && test -x "$gitcmd"
+then
+	echo
+	echo "!! You have installed git-* commands to new gitexecdir."
+	echo "!! Old version git-* commands still remain in bindir."
+	echo "!! Mixing two versions of Git will lead to problems."
+	echo "!! Please remove old version commands in bindir now."
+	echo
+fi