From a84c998c251a83ba3fa3c734b7fbc6fe1af17c6a Mon Sep 17 00:00:00 2001 From: Oliver Pinter Date: Tue, 3 Jan 2012 12:17:43 +0100 Subject: [PATCH] fix git detection code in newvers.sh Signed-off-by: Oliver Pinter diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index c6184a8..b015735 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -92,6 +92,9 @@ for dir in /bin /usr/bin /usr/local/bin; do svnversion=${dir}/svnversion break fi +done + +for dir in /bin /usr/bin /usr/local/bin; do if [ -d "${SYSDIR}/../.git" -a -x "${dir}/git" ] ; then git_cmd="${dir}/git --git-dir=${SYSDIR}/../.git" break