Add comment to status recognizing when we require a repo

This commit is contained in:
Tyler McGoffin 2025-01-31 14:21:29 -08:00
parent 058cb2c220
commit fa5325aec9

View file

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