Allow pr checkout while not on any branch
This commit is contained in:
parent
4fab43a667
commit
d8308b4c15
1 changed files with 1 additions and 4 deletions
|
|
@ -263,10 +263,7 @@ func prCheckout(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
ctx := contextForCommand(cmd)
|
||||
currentBranch, err := ctx.Branch()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
currentBranch, _ := ctx.Branch()
|
||||
remotes, err := ctx.Remotes()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue