this fetch was redundant since AddRemote fetches
This commit is contained in:
parent
ce8f3418eb
commit
90d2f99d2a
1 changed files with 0 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue