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) }