REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
-VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
+VERSION="Repository:$REPONAME ActiveBranch:[$BRANCH] `if [ -n \"$LATESTTAG\" ]; then echo \"PrecedingRelease:$LATESTTAG\"; fi` PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --assume-unchanged $FILENAME
\ No newline at end of file
REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
-VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
+VERSION="Repository:$REPONAME ActiveBranch:[$BRANCH] `if [ -n \"$LATESTTAG\" ]; then echo \"PrecedingRelease:$LATESTTAG\"; fi` PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --no-assume-unchanged $FILENAME
git add $FILENAME
\ No newline at end of file
REVCOUNT=`git log --oneline | wc -l`
LATESTTAG=`git describe --tags --abbrev=0`
-VERSION="$REPONAME Branch:[$BRANCH] Release:$LATESTTAG PrecedingRevision:$REVCOUNT($SHORTHASH)"
+VERSION="Repository:$REPONAME ActiveBranch:[$BRANCH] `if [ -n \"$LATESTTAG\" ]; then echo \"PrecedingRelease:$LATESTTAG\"; fi` PrecedingRevision:$REVCOUNT($SHORTHASH)"
echo $VERSION > $FILENAME
git update-index --no-assume-unchanged $FILENAME
git add $FILENAME
\ No newline at end of file
-neuron-kernel Branch:[master] Release: PrecedingRevision:33(0bace6a)
+Repository:neuron-kernel ActiveBranch:[master] PrecedingRevision:34(6ef8ca8)