Automator: update common-files@master in istio/istio.io@master (#7836)

This commit is contained in:
Istio Automation 2020-08-02 05:26:00 -07:00 committed by GitHub
parent da34be26c1
commit 613972315e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -1 +1 @@
db3352f9c99152f45a63102feefddb5b89262025
d30e9b9cf226389e312311ae73ac549c48600a26

View File

@ -22,7 +22,7 @@
# limitations under the License.
if BUILD_GIT_REVISION=$(git rev-parse HEAD 2> /dev/null); then
if [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
if [[ -z "${IGNORE_DIRTY_TREE}" ]] && [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
BUILD_GIT_REVISION=${BUILD_GIT_REVISION}"-dirty"
fi
else
@ -30,9 +30,8 @@ else
fi
# Check for local changes
if git diff-index --quiet HEAD --; then
tree_status="Clean"
else
tree_status="Clean"
if [[ -z "${IGNORE_DIRTY_TREE}" ]] && ! git diff-index --quiet HEAD --; then
tree_status="Modified"
fi