Skip to content

Commit

Permalink
Fix gitlog resolving log range
Browse files Browse the repository at this point in the history
* Remove unneeded delete last commit from git log
  • Loading branch information
juhaku committed Feb 15, 2022
1 parent f1b017b commit 395acfc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/actions/gitlog/gitlog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ fi

mapfile -t log_lines < <(git log --pretty=format:'(%h) %s' $ancestry_path $commit_range)

if [[ "$last_release" != "" ]]; then
len=${#log_lines[@]}
unset "log_lines[(($len - 1))]" # remove the last item since it is the actual tag
fi

log=""
for line in "${log_lines[@]}"; do
log=$log"* $line\n"
Expand Down

0 comments on commit 395acfc

Please sign in to comment.