Allow pr status use when on detached HEAD
This commit is contained in:
parent
bec667964c
commit
a40fb04fc3
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func prStatus(cmd *cobra.Command, args []string) error {
|
|||
|
||||
repoOverride, _ := cmd.Flags().GetString("repo")
|
||||
currentPRNumber, currentPRHeadRef, err := prSelectorForCurrentBranch(ctx, baseRepo)
|
||||
if err != nil && repoOverride == "" {
|
||||
if err != nil && repoOverride == "" && err.Error() != "git: not on any branch" {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue