From 03e60758d0974c304ba95ef8a7a56bef7dadf76a Mon Sep 17 00:00:00 2001 From: vilmibm Date: Wed, 22 Apr 2020 16:08:47 -0500 Subject: [PATCH] missed a thing --- command/repo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/repo.go b/command/repo.go index 5a278d612..b96a48164 100644 --- a/command/repo.go +++ b/command/repo.go @@ -459,7 +459,8 @@ func repoFork(cmd *cobra.Command, args []string) error { } } if cloneDesired { - cloneDir, err := runClone(forkedRepo.CloneURL, []string{}) + forkedRepoCloneURL := formatRemoteURL(cmd, ghrepo.FullName(forkedRepo)) + cloneDir, err := runClone(forkedRepoCloneURL, []string{}) if err != nil { return fmt.Errorf("failed to clone fork: %w", err) }