diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2017-10-16 16:20:20 +0200 |
---|---|---|
committer | Jakob Buchgraber <buchgr@google.com> | 2017-10-16 17:49:08 +0200 |
commit | a97f914e5be7c10f44c7573ac41b1c4f0377136d (patch) | |
tree | c48245e5941c9bb4db2ca15c79020b28215ba58f /scripts/release/relnotes.sh | |
parent | 9f777bbe0d5a41e118d826ea2156b702ad5a4a72 (diff) |
Ensure that the release notes are not empty if there is no rollback
Because the empty list was returned for the list of hashes to ignore,
we matching all the lines in the following grep. By adding a dummy
hashes, it ensure that list is never empty and we thus never
give a match all pattern.
Change-Id: Ic5446c16b56633805e61b24ad71b67029a7b01e3
PiperOrigin-RevId: 172321625
Diffstat (limited to 'scripts/release/relnotes.sh')
-rwxr-xr-x | scripts/release/relnotes.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/release/relnotes.sh b/scripts/release/relnotes.sh index e72d3d42e8..8c342b2ddd 100755 --- a/scripts/release/relnotes.sh +++ b/scripts/release/relnotes.sh @@ -64,7 +64,7 @@ function get_release_notes_commits() { | grep -E '^[a-z0-9]+ Rollback of commit [a-z0-9]+.$' || true) local rollback_hashes=$(echo "$rollback_commits" | cut -d " " -f 1) local rolledback_hashes=$(echo "$rollback_commits" | cut -d " " -f 5 | sed -E 's/^(.......).*$/\1/') - local exclude_hashes=$(echo $cherry_picks $rollback_hashes $rolledback_hashes | xargs echo | sed 's/ /|/g') + local exclude_hashes=$(echo DUMMY $cherry_picks $rollback_hashes $rolledback_hashes | xargs echo | sed 's/ /|/g') git log --reverse --pretty=format:%H ${baseline}.. -E --grep='^RELNOTES(\[[^\]+\])?:' \ | grep -Ev "^(${exclude_hashes})" || true } |