2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Fix the git short commit id to 7-byte long

This commit is contained in:
GONG Jie 2018-02-28 17:51:59 +08:00
parent 60f7142ad0
commit 9ed73d9dfb
2 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ then
short_short_ver=`cat Version|cut -d. -f 1`
build_time=`date`
build_machine=`hostname`
commit_id=`git rev-parse --short HEAD`
commit_id_long=`git rev-parse HEAD`
commit_id="${commit_id_long:0:7}"
package_dir_name=debs$REL
#TODO: define the core path and tarball name

View File

@ -188,8 +188,8 @@ function setversionvars {
SHORTSHORTVER=`echo $VER|cut -d. -f 1`
BUILD_TIME=`date`
BUILD_MACHINE=`hostname`
COMMIT_ID=`git rev-parse --short HEAD`
COMMIT_ID_LONG=`git rev-parse HEAD`
COMMIT_ID="${COMMIT_ID_LONG:0:7}"
XCAT_RELEASE="snap$(date '+%Y%m%d%H%M')"
echo "$XCAT_RELEASE" >Release
}