mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 10:26:45 +02:00
stick to 7 characters even for modern 'git' version
This commit is contained in:
@@ -32,7 +32,7 @@ REPO_DATADIR="$REPODIR/data/glest_game"
|
||||
if [ -d "$REPODIR/.git" ] && [ "$(which git 2>/dev/null)" != "" ]; then
|
||||
cd "$REPODIR"
|
||||
if [ "$SOURCE_BRANCH" = "" ]; then SOURCE_BRANCH="$(git branch | awk -F '* ' '/^* / {print $2}')"; fi
|
||||
SOURCE_COMMIT="$(echo "[$(git rev-list HEAD --count).$(git log -1 --format=%h)]")"
|
||||
SOURCE_COMMIT="$(echo "[$(git rev-list HEAD --count).$(git log -1 --format=%h --abbrev=7)]")"
|
||||
fi
|
||||
ARCHIVE_TYPE="tar.xz"
|
||||
SNAPSHOTNAME="mg-binary-$kernel-$architecture"
|
||||
|
Reference in New Issue
Block a user