Allow pr checkout while not on any branch

This commit is contained in:
Mislav Marohnić 2019-11-14 20:54:44 +01:00
parent 4fab43a667
commit d8308b4c15

View file

@ -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