mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1563 from chutzimir/rev-list
Properly count the number of commits
This commit is contained in:
commit
0a0887bbc4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user