1
0
Fork 0
forked from forgejo/forgejo

Handle submodules without a .gitmodules entry - fix #1023

This commit is contained in:
Filippo Valsorda 2015-03-10 03:08:17 +00:00
parent 5e763baa12
commit 5d5d774e03
4 changed files with 15 additions and 3 deletions

View file

@ -88,11 +88,11 @@ func (c *Commit) GetCommitOfRelPath(relPath string) (*Commit, error) {
}
func (c *Commit) GetSubModule(entryname string) (*SubModule, error) {
moduels, err := c.GetSubModules()
modules, err := c.GetSubModules()
if err != nil {
return nil, err
}
return moduels[entryname], nil
return modules[entryname], nil
}
func (c *Commit) GetSubModules() (map[string]*SubModule, error) {