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

dev-cmd/tap-new: fix output on newer versions of Git. #10324

Merged
merged 1 commit into from Jan 14, 2021

Conversation

MikeMcQuaid
Copy link
Member

Otherwise this prints to stderr to ask for configuration of the branch name:
https://github.com/Homebrew/brew/pull/10323/checks?check_run_id=1701105141#step:5:51

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Jan 14, 2021
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

1 similar comment
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@dawidd6
Copy link
Member

dawidd6 commented Jan 14, 2021

Doesn't safe_system "git", "branch", "-m", branch already handle the branch naming for us?

@MikeMcQuaid
Copy link
Member Author

Doesn't safe_system "git", "branch", "-m", branch already handle the branch naming for us?

It does, yep. Unfortunately we need to handle this in a way that works on older and newer Git versions. It's a no-op if the branch is already named e.g. main on newer versions and the -c bit is a no-op on older versions that don't know about that configuration setting.

@MikeMcQuaid MikeMcQuaid merged commit 5dd4760 into Homebrew:master Jan 14, 2021
@MikeMcQuaid MikeMcQuaid deleted the tap-new-branch branch January 14, 2021 11:50
@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Feb 14, 2021
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Feb 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants