Don't list remotes when --repo flag is set
This commit is contained in:
parent
58f6bef8a7
commit
45c2a16d49
4 changed files with 23 additions and 10 deletions
|
|
@ -76,7 +76,8 @@ func prStatus(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx)
|
||||
repo, _ := cmd.Flags().GetString("repo")
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx, repo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -132,7 +133,8 @@ func prList(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx)
|
||||
repo, _ := cmd.Flags().GetString("repo")
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx, repo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -257,7 +259,8 @@ func prView(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx)
|
||||
repo, _ := cmd.Flags().GetString("repo")
|
||||
baseRepo, err := determineBaseRepo(cmd, ctx, repo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue