add note about future behavior

This commit is contained in:
vilmibm 2021-01-25 11:29:26 -08:00
parent d051f0634f
commit 26f6761481

View file

@ -240,6 +240,8 @@ func forkRun(opts *ForkOptions) error {
if connectedToTerminal {
return fmt.Errorf("a remote called '%s' already exists. You can rerun this command with --remote-name to specify a different remote name.", remoteName)
} else {
// TODO next major version we should break this behavior and force users to opt into
// remote renaming in a scripting context via --remote-name
renameTarget := "upstream"
renameCmd, err := git.GitCommand("remote", "rename", remoteName, renameTarget)
if err != nil {