diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-12 01:45:43 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-12 01:45:43 -0400 |
commit | 31d613c01d313e14cc57fcb183f7489352ff6aa5 (patch) | |
tree | 612cb8563d6d7728e5a4c2fb17e609001c78378f /routers/repo/commit.go | |
parent | d305448fa802a91ba81af1b78294f1658bcf834c (diff) | |
download | gitea-31d613c01d313e14cc57fcb183f7489352ff6aa5.tar.gz gitea-31d613c01d313e14cc57fcb183f7489352ff6aa5.zip |
Mirror fix
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index fed1a6badd..dbfd9af297 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -103,6 +103,7 @@ func Diff(ctx *middleware.Context, params martini.Params) { ctx.Data["Title"] = commit.Message() + " ยท " + base.ShortSha(commitId) ctx.Data["Commit"] = commit ctx.Data["Diff"] = diff + ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0 ctx.Data["IsRepoToolbarCommits"] = true ctx.Data["SourcePath"] = "/" + path.Join(userName, repoName, "src", commitId) ctx.Data["RawPath"] = "/" + path.Join(userName, repoName, "raw", commitId) |