Skip to content

Commit 08e9cda

Browse files
committed
small repo fix
1 parent 3b62d79 commit 08e9cda

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

command/root.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,16 @@ func determineBaseRepo(apiClient *api.Client, cmd *cobra.Command, ctx context.Co
223223
return ghrepo.FromFullName(repo), nil
224224
}
225225

226-
baseOverride, err := cmd.Flags().GetString("repo")
227-
if err != nil {
228-
return nil, err
229-
}
226+
// TODO check to see if the git config has a default repo set; if it seems like an interactive
227+
// environment, ask which of the resolved remotes the user wants to use as the base. if none, let
228+
// them type one in. save in git config and then skip git resolution next time.
230229

231230
remotes, err := ctx.Remotes()
232231
if err != nil {
233232
return nil, err
234233
}
235234

236-
repoContext, err := context.ResolveRemotesToRepos(remotes, apiClient, baseOverride)
235+
repoContext, err := context.ResolveRemotesToRepos(remotes, apiClient, "")
237236
if err != nil {
238237
return nil, err
239238
}

0 commit comments

Comments
 (0)