diff --git a/common/.commonfiles.sha b/common/.commonfiles.sha index 15580d34be3..2db8b0eb570 100644 --- a/common/.commonfiles.sha +++ b/common/.commonfiles.sha @@ -1 +1 @@ -db3352f9c99152f45a63102feefddb5b89262025 +d30e9b9cf226389e312311ae73ac549c48600a26 diff --git a/common/scripts/report_build_info.sh b/common/scripts/report_build_info.sh index 995228183e2..35af355d812 100755 --- a/common/scripts/report_build_info.sh +++ b/common/scripts/report_build_info.sh @@ -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