Skip to content

Commit c431775

Browse files
neddpramonskie
authored andcommitted
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.
1 parent e84378c commit c431775

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • ci/tasks/bump-deployments

ci/tasks/bump-deployments/task

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function main() {
2929
git config user.email "cf-infrastructure@pivotal.io"
3030
git config user.name "cf-infra-bot"
3131

32+
git update-index -q --refresh
3233
git diff-index --quiet HEAD || git commit -am 'Update deployments'
3334

3435
cp -r . ${ROOT}/bump-deployments-ci

0 commit comments

Comments
 (0)