Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13484] Use --no-checkout when cloning packages, since it's immediately followed by a checkout anyway #4503

Open
abertelrud opened this issue Sep 1, 2020 · 1 comment

Comments

@abertelrud
Copy link
Contributor

Previous ID SR-13484
Radar rdar://problem/68165300
Original Reporter @abertelrud
Type Improvement
Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Improvement
Assignee None
Priority Medium

md5: d389d18f8e4ede6ff86365788032e7c4

Issue Description:

SwiftPM fetches a remote repository by mirroring it to the local file system, then clones that local repository to a working directory, after which it checks out a specific ref.

When the local clone happens, Git also does a check out. This is unnecessary, since the checkout will immediately be replaced by the intended ref, and it also makes the checkout sensitive to whether the default branch name is set up correctly for the repository (as seen in rdar://67760993).

Since the working copy is guaranteed to be checked out after the clone, there is no need to do a checkout as part of the cloning.

@abertelrud
Copy link
Contributor Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants