Skip to content

Commit 864bb61

Browse files
authored
Merge pull request #3117 from apple/fix-update-checkout
[utils] Fix submodule logic for update-checkout script
2 parents 63c36df + b2903a9 commit 864bb61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/update-checkout

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ def obtain_additional_swift_sources(
122122
shell.call(['git', '--git-dir', src_path, '--work-tree',
123123
os.path.join(SWIFT_SOURCE_ROOT, repo_name),
124124
'checkout', repo_branch], echo=False)
125-
125+
with shell.pushd(os.path.join(SWIFT_SOURCE_ROOT, repo_name),
126+
dry_run=False, echo=False):
127+
shell.call(["git", "submodule", "update", "--recursive"],
128+
echo=False)
126129

127130
def validate_config(config):
128131
# Make sure that our branch-names are unique.

0 commit comments

Comments
 (0)