aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/api.go')
-rw-r--r--modules/context/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go
index a367597e8a..58532b883d 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -340,6 +340,7 @@ func RepoRefForAPI(next http.Handler) http.Handler {
return
}
ctx.Repo.Commit = commit
+ ctx.Repo.CommitID = ctx.Repo.Commit.ID.String()
ctx.Repo.TreePath = ctx.Params("*")
next.ServeHTTP(w, req)
return