Skip to content

Commit

Permalink
Fix previous tag retrieval (#554)
Browse files Browse the repository at this point in the history
* Fix previous tag retrieval

* Keep using git describe for getting the tag
  • Loading branch information
andresmgot authored Aug 30, 2018
1 parent 17c32d1 commit 04271fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function commit_list {
local repo_domain=${2:?}
local repo_name=${3:?}
git fetch --tags
local previous_tag=`git describe --tags $(git rev-list --tags --max-count=1)`
local previous_tag=`git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)`
local commit_list=`git log $previous_tag..$tag --pretty=format:"- %s %H (%an)"`
echo "$commit_list"
}
Expand Down

0 comments on commit 04271fd

Please sign in to comment.