mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
script: setlocalversion: don't include branch name
also use shorter commit hash Signed-off-by: azrim <mirzaspc@gmail.com> Signed-off-by: Hiitagiii <mirzaspc@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
98386fc158
commit
3856af46d2
@ -49,9 +49,8 @@ scm_version()
|
||||
|
||||
# Get branch name, get commit sha, leave.
|
||||
if test "$CONFIG_LOCALVERSION_BRANCH_SHA" = "y"; then
|
||||
branch_name=$(git rev-parse --abbrev-ref HEAD)
|
||||
last_commit=$(git rev-parse --verify --short=10 HEAD)
|
||||
printf '%s' "-$branch_name/$last_commit"
|
||||
last_commit=$(git rev-parse --verify --short=8 HEAD)
|
||||
printf '%s' "/$last_commit"
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user