diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2017-01-26 14:41:04 +0000 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2017-01-26 14:53:59 +0000 |
commit | dbdaf83fe5480179bf65b86421168a5dba0e2198 (patch) | |
tree | 2dea053d8b511f967620455cf530d48e08b1d270 /scripts/release/relnotes.sh | |
parent | bbfa9fa5ad1dd66ecedcb136a4ff3d0f8d397b9b (diff) |
Fix release scripts by using full hash everywhere
Previously we were using short hash for rendering to the user but
our repository as grown and on some configuration of git the short
hash size has increased. To be future-proof, just remove all usage
of short hash and use full hash instead.
Fixes #2429.
--
PiperOrigin-RevId: 145667804
MOS_MIGRATED_REVID=145667804
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 2c4a0ab7cc..aed0b5cc17 100755 --- a/scripts/release/relnotes.sh +++ b/scripts/release/relnotes.sh @@ -65,7 +65,7 @@ function get_release_notes_commits() { 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') - git log --reverse --pretty=format:%h ${baseline}.. -E --grep='^RELNOTES(\[[^\]+\])?:' \ + git log --reverse --pretty=format:%H ${baseline}.. -E --grep='^RELNOTES(\[[^\]+\])?:' \ | grep -Ev "^(${exclude_hashes})" } |