Skip to content

Commit

Permalink
Also check for dirty releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tallclair committed Jun 30, 2016
1 parent 151d491 commit 306854a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RELEASE=${RELEASE:-false} # Whether to build for an official release.

repo_path="github.com/google/cadvisor"

version=$( git describe --tags --abbrev=14 HEAD | sed -E 's/-([0-9]+)-g([0-9a-f]+)/.\1+\2/' )
version=$( git describe --tags --dirty --abbrev=14 | sed -E 's/-([0-9]+)-g/.\1+/' )
revision=$( git rev-parse --short HEAD 2> /dev/null || echo 'unknown' )
branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' )
build_user="${USER}@${HOSTNAME}"
Expand Down

0 comments on commit 306854a

Please sign in to comment.