@@ -135,19 +135,21 @@ func statusRun(opts *StatusOptions) error {
135135 fmt .Fprintf (out , "Relevant pull requests in %s\n " , ghrepo .FullName (baseRepo ))
136136 fmt .Fprintln (out , "" )
137137
138- shared .PrintHeader (opts .IO , "Current branch" )
139- currentPR := prPayload .CurrentPR
140- if currentPR != nil && currentPR .State != "OPEN" && prPayload .DefaultBranch == currentBranch {
141- currentPR = nil
142- }
143- if currentPR != nil {
144- printPrs (opts .IO , 1 , * currentPR )
145- } else if currentPRHeadRef == "" {
146- shared .PrintMessage (opts .IO , " There is no current branch" )
147- } else {
148- shared .PrintMessage (opts .IO , fmt .Sprintf (" There is no pull request associated with %s" , cs .Cyan ("[" + currentPRHeadRef + "]" )))
138+ if ! opts .HasRepoOverride {
139+ shared .PrintHeader (opts .IO , "Current branch" )
140+ currentPR := prPayload .CurrentPR
141+ if currentPR != nil && currentPR .State != "OPEN" && prPayload .DefaultBranch == currentBranch {
142+ currentPR = nil
143+ }
144+ if currentPR != nil {
145+ printPrs (opts .IO , 1 , * currentPR )
146+ } else if currentPRHeadRef == "" {
147+ shared .PrintMessage (opts .IO , " There is no current branch" )
148+ } else {
149+ shared .PrintMessage (opts .IO , fmt .Sprintf (" There is no pull request associated with %s" , cs .Cyan ("[" + currentPRHeadRef + "]" )))
150+ }
151+ fmt .Fprintln (out )
149152 }
150- fmt .Fprintln (out )
151153
152154 shared .PrintHeader (opts .IO , "Created by you" )
153155 if prPayload .ViewerCreated .TotalCount > 0 {
0 commit comments