From c41f0c09eae14014f00a38d5b2f859b99fdd77a4 Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Tue, 8 Jun 2010 01:03:03 +0400 Subject: [PATCH] Make version.sh indicate "M" for local commits too --- version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version.sh b/version.sh index b7772095..7f06c7c5 100755 --- a/version.sh +++ b/version.sh @@ -5,7 +5,8 @@ if [ $LOCALVER \> 1 ] ; then VER=`git rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'` if [ $VER != $LOCALVER ] ; then VER="$VER+$(($LOCALVER-$VER))" - elif git status | grep -q "modified:" ; then + fi + if git status | grep -q "modified:" ; then VER="${VER}M" fi VER="$VER $(git rev-list HEAD -n 1 | cut -c 1-7)" -- 2.47.3