From 26f6761481f035325a0776571bf1cb08b9389270 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 25 Jan 2021 11:29:26 -0800 Subject: [PATCH] add note about future behavior --- pkg/cmd/repo/fork/fork.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/repo/fork/fork.go b/pkg/cmd/repo/fork/fork.go index a49a0e0f9..ecd0c20cb 100644 --- a/pkg/cmd/repo/fork/fork.go +++ b/pkg/cmd/repo/fork/fork.go @@ -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 {