mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Shallow clone specific branch
This allows one to say `./utils/update-checkout --clone --skip-history --scheme swift-3.1-branch`. This would otherwise fail, as it would do a shallow clone of master, which doesn't contain `swift-3.1-branch`.
This commit is contained in:
@@ -220,7 +220,7 @@ def obtain_additional_swift_sources(pool_args):
|
||||
print("Cloning '" + repo_name + "'")
|
||||
|
||||
if skip_history:
|
||||
shell.run(['git', 'clone', '--recursive', '--depth', '1',
|
||||
shell.run(['git', 'clone', '--recursive', '--depth', '1', '--branch', repo_branch,
|
||||
remote, repo_name], echo=True)
|
||||
else:
|
||||
shell.run(['git', 'clone', '--recursive', remote,
|
||||
|
||||
Reference in New Issue
Block a user