diff options
author | Filippo Valsorda <filippo@cloudflare.com> | 2015-03-10 03:08:17 +0000 |
---|---|---|
committer | Filippo Valsorda <filippo@cloudflare.com> | 2015-03-10 03:08:17 +0000 |
commit | 5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5 (patch) | |
tree | 953cddb2e3194926266ee9f9e28b3ee235be11a1 /modules/git/commit.go | |
parent | 5e763baa12e346f8eb577073399068802fa5d67a (diff) | |
download | gitea-5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5.tar.gz gitea-5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5.zip |
Handle submodules without a .gitmodules entry - fix #1023
Diffstat (limited to 'modules/git/commit.go')
-rw-r--r-- | modules/git/commit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/commit.go b/modules/git/commit.go index d2d373da12..4e254dcec1 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -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) { |