Merge pull request #1563 from chutzimir/rev-list

Properly count the number of commits
This commit is contained in:
Stephan Raue 2012-12-07 20:04:08 -08:00
commit 0a0887bbc4

View File

@ -35,8 +35,8 @@ export INSTALL=$BUILD/image/system
BUILD_DATE=`date +%Y%m%d%H%M%S`
if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then
GIT_BUILD=`git log --pretty=format:'' | wc -l`
GIT_HASH=`git log -n1 --format=%H`
GIT_BUILD=`git rev-list HEAD | wc -l`
GIT_HASH=`git rev-parse HEAD`
OPENELEC_VERSION=$OPENELEC_VERSION-$BUILD_DATE-r$GIT_BUILD
fi