Skip to content

Commit 6ed194b

Browse files
[internal] Update GitHub Actions workflow files (#599)
Co-authored-by: Pulumi Bot <bot@pulumi.com>
1 parent 05d4d4b commit 6ed194b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build_sdk.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)