Skip to content

apps:rename removes the git remote instead of renaming it #3109

@justinwilaby

Description

@justinwilaby

v9.5.x and earlier

running heroku apps:rename -a OLD_NAME NEW_NAME in a directory where a git remote exists for OLD_NAME causes it to be removed from the remotes instead of renamed.

Repro steps

  1. Add an app to the git remotes heroku git:remote APP_NAME
  2. Verify the heroku remote exists git remote -v
  3. Rename the app heroku apps:rename -a OLD_NAME NEW_NAME
  4. Verify the heroku remote was updated git remote -v

Expected behavior

The heroku remote is updated with the new app name

Actual behavior

The heroku remote is removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions