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

Drop broken refspecs argument for porcelain.clone #1420

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

jelmer
Copy link
Owner

@jelmer jelmer commented Nov 5, 2024

This argument currently only works for v2 and is untested.

when encoding refspecs, handle the absence case (thanks to @stspdotname in #1416 for finding this)

Also, don't provide separate encoding argument for refspecs. This is consistent with other arguments. Callers that really need a non-standard encoding can do their own encoding and pass in a bytestring.

This is consistent with other functions where both bytes and strings are accepted. Users can pre-encode if they don't want to use the default encoding, utf-8
This argument never worked properly for the v1 client protocol and is untested.

We should re-add it, but until I'd rather not implement it than have it half-working.
@stspdotname
Copy link
Contributor

Fine with me for now. I can revisit this later.

@jelmer jelmer merged commit e1c813c into master Nov 5, 2024
23 of 24 checks passed
@jelmer jelmer deleted the clone-no-refspec branch November 5, 2024 19:32
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.

2 participants