From 90d2f99d2a5f37bc6458200297ff91ba16f12b8c Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 3 Mar 2020 15:38:05 -0600 Subject: [PATCH] this fetch was redundant since AddRemote fetches --- command/repo.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/command/repo.go b/command/repo.go index 26131a6fc..49c39db8a 100644 --- a/command/repo.go +++ b/command/repo.go @@ -195,15 +195,6 @@ func repoFork(cmd *cobra.Command, args []string) error { return fmt.Errorf("failed to add remote: %w", err) } - fetchCmd := git.GitCommand("fetch", "fork") - fetchCmd.Stdin = os.Stdin - fetchCmd.Stdout = os.Stdout - fetchCmd.Stderr = os.Stderr - err = utils.PrepareCmd(fetchCmd).Run() - if err != nil { - return fmt.Errorf("failed to fetch new remote: %w", err) - } - fmt.Fprintf(out, "%s Remote added at %s\n", greenCheck, utils.Bold("fork")) } } else {