X Tutup
Skip to content

Commit 4ee995d

Browse files
committed
fix(486): Getting issue list on no remotes specified
Fixes: cli#486
1 parent cbc2d16 commit 4ee995d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

context/context.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func (c *fsContext) Remotes() (Remotes, error) {
201201
if err != nil {
202202
return nil, err
203203
}
204+
205+
if len(gitRemotes) == 0 {
206+
return nil, errors.New("No git remotes found")
207+
}
204208
sshTranslate := git.ParseSSHConfig().Translator()
205209
c.remotes = translateRemotes(gitRemotes, sshTranslate)
206210
}

0 commit comments

Comments
 (0)
X Tutup