fix(486): Getting issue list on no remotes specified

Fixes: #486
This commit is contained in:
Yash Ladha 2020-02-21 02:12:58 +05:30
parent cbc2d16230
commit 4ee995dafd
No known key found for this signature in database
GPG key ID: C2BEEFCCB74D6EF0

View file

@ -201,6 +201,10 @@ func (c *fsContext) Remotes() (Remotes, error) {
if err != nil {
return nil, err
}
if len(gitRemotes) == 0 {
return nil, errors.New("No git remotes found")
}
sshTranslate := git.ParseSSHConfig().Translator()
c.remotes = translateRemotes(gitRemotes, sshTranslate)
}