parent
cbc2d16230
commit
4ee995dafd
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue