From dda6f215024f610d6a637981ff3d7cc345697639 Mon Sep 17 00:00:00 2001 From: Ned Petrov Date: Fri, 31 Jul 2026 14:25:54 +0300 Subject: [PATCH] bump-deployments: refresh index before checking for changes git diff-index reports stale stat cache entries as dirty after Concourse's shallow clone resets file mtimes. Running git update-index -q --refresh first syncs the stat cache so diff-index gets an accurate read. --- ci/tasks/bump-deployments/task | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/tasks/bump-deployments/task b/ci/tasks/bump-deployments/task index 1fb7d761c..7edd3cb0c 100755 --- a/ci/tasks/bump-deployments/task +++ b/ci/tasks/bump-deployments/task @@ -29,6 +29,7 @@ function main() { git config user.email "cf-infrastructure@pivotal.io" git config user.name "cf-infra-bot" + git update-index -q --refresh git diff-index --quiet HEAD || git commit -am 'Update deployments' cp -r . ${ROOT}/bump-deployments-ci