Skip to content

restore fork rename behavior for nontty case#2825

Merged
vilmibm merged 3 commits intotrunkfrom
rename-fork
Jan 25, 2021
Merged

restore fork rename behavior for nontty case#2825
vilmibm merged 3 commits intotrunkfrom
rename-fork

Conversation

@vilmibm
Copy link
Contributor

@vilmibm vilmibm commented Jan 23, 2021

This PR restores the magical renaming behavior of an existing origin remote when forking a parent
repo that already exists locally. Now, the renaming only triggers if the command is not running
attached to a TTY, preserving backwards compatibility with this command's behavior in a scripting
scenario.

@vilmibm vilmibm requested review from mislav and samcoe January 23, 2021 00:03
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; looks good!

Should we add a code comment noting that the backwards-compatible fallback should be removed in a future major release?

@vilmibm vilmibm merged commit 6152d8a into trunk Jan 25, 2021
@vilmibm vilmibm deleted the rename-fork branch January 25, 2021 19:29
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