summaryrefslogtreecommitdiffstats
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-14 13:21:31 -0500
committerUnknwon <u@gogs.io>2015-11-14 13:21:31 -0500
commit7c80eba77f727c2b80b4091c850dc38d47532b8d (patch)
treebb6f3811bc3547e18266eed7410b1f2ba8d7d5f2 /routers/repo/commit.go
parent9c12ed3b6edb4d087db79fbc8482c9211021602d (diff)
downloadgitea-7c80eba77f727c2b80b4091c850dc38d47532b8d.tar.gz
gitea-7c80eba77f727c2b80b4091c850dc38d47532b8d.zip
minor UI fix and fix ssh race
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 101cb5c557..0c9e7817a2 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -17,6 +17,8 @@ import (
"github.com/gogits/gogs/modules/setting"
)
+import "github.com/davecheney/profile"
+
const (
COMMITS base.TplName = "repo/commits"
DIFF base.TplName = "repo/diff"
@@ -43,6 +45,7 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
}
func Commits(ctx *middleware.Context) {
+ defer profile.Start(profile.CPUProfile).Stop()
ctx.Data["PageIsCommits"] = true
commitsCount, err := ctx.Repo.Commit.CommitsCount()