-
Notifications
You must be signed in to change notification settings - Fork 235
fix: apps:rename and apps:destroy incorrectly handles git remotes #3110
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
Conversation
eablack
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…eroku/cli into jw/fix/git-removes-remotes-incorrectly
My apologies @eablack - In this case the |
eablack
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great! The only thing I wonder about is whether we should have this explicitly tested. It's kind of a side effect of the command, though, so I'll leave it to your discretion if you think there's a valuable way to add a test for this.
@justinwilaby I was playing with this today and found if I'm inside my apps git repository, and have a heroku remote, I can run I wonder if I guess even nicer would be if it renamed it without |
|
I'll be providing an answer here, but we should continue the discussion on the issue that was created to follow this, given this PR is already closed and merged. I will post this answer there too. Hi @jmasson, the behavior you described is just how the Heroku CLI operates to determine the target app for any command requiring the When the I.e. a command like the one you described: |


fixes #3109
To test
heroku git:remote APP_NAME && heroku git:remote APP_NAME--remote heroku-dev` - This will add 2 remotesherokuandheroku-devexist and they both point to the same URL./bin/run apps:rename -a OLD_APP_NAME NEW_APP_NAMEwith the cwd of your local git repo.git remote -v