From 40dc90b3b1a30653ec4ecf18b22b80149db47a85 Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Sat, 22 Aug 2020 17:45:16 -0700 Subject: [PATCH] Update cloudbuild.sh --- releasing/cloudbuild.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/releasing/cloudbuild.sh b/releasing/cloudbuild.sh index e7aec2e7f..b6e02d2c0 100755 --- a/releasing/cloudbuild.sh +++ b/releasing/cloudbuild.sh @@ -35,10 +35,14 @@ module=${fullTag%/*} echo "module=$module" # Obtain most recent commit hash associated with the module. -lastCommitHash=$(git log --tags=$module -1 --oneline --no-walk --pretty=format:%h) +lastCommitHash=$( + git log --tags=$module -1 --oneline --no-walk --pretty=format:%h) -# Generate the changelog for this release using commit hashes and commit messages. -cl=$(git log $lastCommitHash.. --pretty=oneline --abbrev-commit --no-decorate --no-color -- $module) +# Generate the changelog for this release +# using commit hashes and commit messages. +cl=$( + git log $lastCommitHash.. --pretty=oneline \ + --abbrev-commit --no-decorate --no-color -- $module) # Take everything after the last slash. # This should be something like "v1.2.3".