Add comment to status recognizing when we require a repo
This commit is contained in:
parent
058cb2c220
commit
fa5325aec9
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ func statusRun(opts *StatusOptions) error {
|
|||
var currentHeadRefBranchName string
|
||||
|
||||
if !opts.HasRepoOverride {
|
||||
// We must be in a repo without the override
|
||||
currentBranchName, err = opts.Branch()
|
||||
if err != nil && !errors.Is(err, git.ErrNotOnAnyBranch) {
|
||||
return fmt.Errorf("could not query for pull request for current branch: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue