fix get_last_tag function
Depending on how things merge into a branch, the --first-parent option might give us the wrong version. For example, python-troveclient at 26425a6 was showing 2.13.0 instead of the correct 2.14.0. Remove the option to fix that problem. Change-Id: I9a6996b03dc74df6963ac96887356bc6094e59b7 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
5f00e51c87
commit
30eb91b7c2
@ -56,10 +56,10 @@ function get_last_tag {
|
||||
# Print the most recent tag for a ref. If no ref is specified, the
|
||||
# currently checked out branch is examined.
|
||||
local ref="$1"
|
||||
if ! git describe --abbrev=0 --first-parent ${ref} >/dev/null 2>&1; then
|
||||
if ! git describe --abbrev=0 ${ref} >/dev/null 2>&1; then
|
||||
echo ""
|
||||
else
|
||||
git describe --abbrev=0 --first-parent ${ref}
|
||||
git describe --abbrev=0 ${ref}
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user