Skip to content

Allow lightweight release tags

James Fargher requested to merge lightweight_version_tags into master
  • Adds --tags to allow lightweight version tags
  • Force an exact tag match so that backup cat VERSION behaviour can be triggered

Before:

$ set -o pipefail
$ git describe --match v* 2>/dev/null | sed 's/^v//' || cat ${SOURCE_DIR}/VERSION 2>/dev/null || echo unknown
13.3.0-rc5-73-g1f0b1740

After:

$ set -o pipefail
$ git describe --tags --exact-match --match v* 2>/dev/null | sed 's/^v//' || cat VERSION 2>/dev/null || echo unknown
13.3.0-rc5
Edited by James Fargher

Merge request reports