diff options
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r-- | routers/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index 2a36db6b42..bc05b68051 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -151,7 +151,7 @@ func Home(ctx *middleware.Context) { ctx.Handle(500, "GetCommitOfRelPath", err) return } - files = append(files, []interface{}{te, git.NewSubModuleFile(c, smUrl, te.Id.String())}) + files = append(files, []interface{}{te, git.NewSubModuleFile(c, smUrl, te.ID.String())}) } } ctx.Data["Files"] = files |