aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/single.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/single.go')
-rw-r--r--routers/repo/single.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go
index 1b5da9d3..64ea508b 100644
--- a/routers/repo/single.go
+++ b/routers/repo/single.go
@@ -90,13 +90,13 @@ func Single(ctx *middleware.Context, params martini.Params) {
}
// Get latest commit according username and repo name
- commit, err := models.GetLastestCommit(params["username"], params["reponame"])
+ commit, err := models.GetLastCommit(params["username"], params["reponame"], params["branchname"])
if err != nil {
log.Error("repo.Single(GetLastestCommit): %v", err)
ctx.Render.Error(404)
return
}
- ctx.Data["LatestCommit"] = commit
+ ctx.Data["LastCommit"] = commit
var readmeFile *models.RepoFile