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

SourceControl: centralise git cloning #6550

Merged
merged 3 commits into from May 13, 2023
Merged

SourceControl: centralise git cloning #6550

merged 3 commits into from May 13, 2023

Conversation

compnerd
Copy link
Collaborator

Centralise the git clone command invocation to ensure that we uniformly handle the arguments for the clone. This sets the stage for further tweaks needed to fix cloning some repositories on Windows.

The `progresHandler` is the callback and specifying it will attach
`--progress` to the invocation and will perform the callback.
@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

@compnerd
Copy link
Collaborator Author

I'll rebuild SwiftFormat and run it through. I really wish that we could run that in CI.

@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

Create a helper to invoke `git clone` since we pass a few options to the
invocation.  This ensures that we always clone a repository with the
same set of options and that we do not need to keep the various sites in
sync.
@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

Copy link
Member

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@tomerd tomerd enabled auto-merge (squash) May 13, 2023 00:09
@compnerd
Copy link
Collaborator Author

@swift-ci please test Windows platform

@tomerd tomerd merged commit f353a61 into apple:main May 13, 2023
4 of 5 checks passed
@compnerd compnerd deleted the clone branch May 13, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants