[svn-commits] sruffell: linux/trunk r9475 - /linux/trunk/build_tools/make_version
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 11 13:33:02 CST 2010
Author: sruffell
Date: Thu Nov 11 13:32:58 2010
New Revision: 9475
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9475
Log:
make_version: Use 'git rev-parse' if only looking for a sha5.
Different versions of git have variability in how the log output looks.
Instead of git log, we can use git rev-parse directly.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
linux/trunk/build_tools/make_version
Modified: linux/trunk/build_tools/make_version
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/build_tools/make_version?view=diff&rev=9475&r1=9474&r2=9475
==============================================================================
--- linux/trunk/build_tools/make_version (original)
+++ linux/trunk/build_tools/make_version Thu Nov 11 13:32:58 2010
@@ -66,7 +66,7 @@
fi
# Some older versions of git do not support all the above
# options.
- VERSION=GIT-`git log --abbrev-commit -1 --pretty=oneline --abbrev=7 | cut -f 1 -d .`${MODIFIED}
+ VERSION=GIT-`git rev-parse --short --verify HEAD`${MODIFIED}
fi
echo ${VERSION}
else
More information about the svn-commits
mailing list