File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,9 +118,13 @@ jobs:
118118 git config --global user.email "bot@pulumi.com"
119119 git config --global user.name "pulumi-bot"
120120
121- # Stash local changes and check out the PR's branch directly.
121+ # Stash local changes and check out the PR's branch directly. Fetch
122+ # only that ref: a bare fetch pulls every branch in the repo, and
123+ # on-demand submodule recursion then tries to resolve the submodule
124+ # gitlink of every commit it pulls, including long-dead branches
125+ # pointing at commits the submodule's remote no longer serves.
122126 git stash
123- git fetch
127+ git fetch --no-recurse-submodules origin "+refs/heads/$HEAD_REF:refs/remotes/origin/$HEAD_REF"
124128 git checkout "origin/$HEAD_REF"
125129
126130 # Apply and add our changes, but don't commit any files we expect to
You can’t perform that action at this time.
0 commit comments