summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-31 16:24:28 +0900
committerUnknwon <u@gogs.io>2015-08-31 16:24:28 +0900
commit1ca257ad9f90084f4140bd1df4692f9a56c83ad4 (patch)
tree124a621e8f2d60eea02215e949142bcdd684b791 /modules/middleware/repo.go
parentcb381078ffa9f9a6178110be304dfcac5715e323 (diff)
downloadgitea-1ca257ad9f90084f4140bd1df4692f9a56c83ad4.tar.gz
gitea-1ca257ad9f90084f4140bd1df4692f9a56c83ad4.zip
rename fields
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index d3995d2979..8a5d0f3b25 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -118,7 +118,7 @@ func RepoRef() macaron.Handler {
ctx.Handle(500, "GetCommitOfBranch", err)
return
}
- ctx.Repo.CommitId = ctx.Repo.Commit.Id.String()
+ ctx.Repo.CommitID = ctx.Repo.Commit.Id.String()
ctx.Repo.IsBranch = true
} else {
@@ -149,7 +149,7 @@ func RepoRef() macaron.Handler {
ctx.Handle(500, "GetCommitOfBranch", err)
return
}
- ctx.Repo.CommitId = ctx.Repo.Commit.Id.String()
+ ctx.Repo.CommitID = ctx.Repo.Commit.Id.String()
} else if ctx.Repo.GitRepo.IsTagExist(refName) {
ctx.Repo.IsTag = true
@@ -158,10 +158,10 @@ func RepoRef() macaron.Handler {
ctx.Handle(500, "GetCommitOfTag", err)
return
}
- ctx.Repo.CommitId = ctx.Repo.Commit.Id.String()
+ ctx.Repo.CommitID = ctx.Repo.Commit.Id.String()
} else if len(refName) == 40 {
ctx.Repo.IsCommit = true
- ctx.Repo.CommitId = refName
+ ctx.Repo.CommitID = refName
ctx.Repo.Commit, err = ctx.Repo.GitRepo.GetCommit(refName)
if err != nil {
@@ -176,7 +176,7 @@ func RepoRef() macaron.Handler {
ctx.Repo.BranchName = refName
ctx.Data["BranchName"] = ctx.Repo.BranchName
- ctx.Data["CommitId"] = ctx.Repo.CommitId
+ ctx.Data["CommitID"] = ctx.Repo.CommitID
ctx.Data["IsBranch"] = ctx.Repo.IsBranch
ctx.Data["IsTag"] = ctx.Repo.IsTag
ctx.Data["IsCommit"] = ctx.Repo.IsCommit
@@ -375,7 +375,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
}
ctx.Data["BranchName"] = ctx.Repo.BranchName
- ctx.Data["CommitId"] = ctx.Repo.CommitId
+ ctx.Data["CommitID"] = ctx.Repo.CommitID
userAgent := ctx.Req.Header.Get("User-Agent")
ua := user_agent.New(userAgent)