Skip to content

Commit

Permalink
util/getrevision.sh: Fallback when git tags is missing
Browse files Browse the repository at this point in the history
If the tags are missing the version may not be evaluated correctly.

BUG=b:177691209
BRANCH=none
TEST=none

Change-Id: Ib9f85b2be8b6f5e1332ba98a8a71fcad12331818
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/49618
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
  • Loading branch information
quasisec authored and i-c-o-n committed Jan 18, 2021
1 parent ec94250 commit c872a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/getrevision.sh
Expand Up @@ -129,7 +129,7 @@ timestamp() {
revision() {
local r
if git_is_file_tracked "$1" ; then
r=$(git describe $(git_last_commit "$1"))
r=$(git describe --always $(git_last_commit "$1"))
if git_has_local_changes "$1" ; then
r="$r-dirty"
fi
Expand Down

0 comments on commit c872a9f

Please sign in to comment.