Skip to content
Commit 630ff0fa authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

scripts/setlocalversion: factor out 12-chars hash construction



Both of if and else parts append exactly 12 hex chars, but in
different ways.

Factor out the else part because we need to support it without relying
on git-describe. Remove the --abbrev=12 option since we do not use the
hash from git-describe anyway.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarNico Schottelius <nico-linuxsetlocalversion@schottelius.org>
parent ffaf62a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment