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
bump-formula-pr: forward compatibility with hub fork
#3061
Conversation
Due to limitations of `hub fork` in hub 2.2, scripts had to repeat the command at least two times; the 2nd time was to read the fork name from the "fatal: remote MYNAME already exists" message output from git. In upcoming hub 2.3, the `hub fork` command is improved to always output the remote name, regardless of whether one already existed or not. With this approach, only one `hub fork` call will ever be necessary when hub is up to date.
@mislav yes, I'd noticed this. Thanks for taking care of it. Unfortunately, this PR only works for hub stable and HEAD, but devel remains broken (and I'm not sure it's easily fixable since devel outputs nothing). Maybe it's time for a new |
@ilovezfs Thank you for testing this. Let me check what's up with current devel and get back to you. Yes, it's easy for me to cut a new devel release, but I'd rather that this script works with any version of hub (old or new). |
Thanks @mislav! |
FWIW, hub --HEAD is now breaks as well:
|
I'm on vacation so I won't be able to look into this until 10 days from now.
|
No biggie. Easy enough to quickly switch back to latest real release before running brew command. Mainly just posting as an FYI that --devel and --HEAD behave the same now. |
@jasonkarns HEAD is fine if you pull this PR locally. It hasn't shipped yet.
|
ah, my bad. disregard :( |
Thanks @mislav! Merging this as-is for now as at least it fixes some cases. |
brew tests
with your changes locally?Due to limitations of
hub fork
in hub 2.2, scripts had to repeat the command at least two times; the 2nd time was to read the fork name from the "fatal: remote MYNAME already exists" message output from git.In upcoming hub 2.3, the
hub fork
command is improved to always output the remote name, regardless of whether one already existed or not. With this approach, only onehub fork
call will ever be necessary when hub is up to date./cc @e-beach mislav/hub#1535