Skip to content

Commit

Permalink
mkversion.sh: add --dirty to git version now that snapcraft bug is fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
  • Loading branch information
anonymouse64 committed Aug 13, 2020
1 parent 06d48c9 commit c8da36b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mkversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ fi

# Let's try to derive the version from git..
if command -v git >/dev/null; then
# not using "--dirty" here until the following bug is fixed:
# https://bugs.launchpad.net/snapcraft/+bug/1662388
version_from_git="$(git describe --always | sed -e 's/-/+git/;y/-/./' )"
version_from_git="$(git describe --dirty --always | sed -e 's/-/+git/;y/-/./' )"
fi

# at this point we maybe in _build/src/github etc where we have no
Expand Down

0 comments on commit c8da36b

Please sign in to comment.