aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-25 12:12:27 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-25 12:12:27 -0400
commit2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf (patch)
tree7fdae59ac504c0aedd0a657ff9a9bd9f30de3b22 /routers/repo/repo.go
parent23d103c72163cdb4ea65c9756edf22c597060a7e (diff)
Added create issue
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index cd28d52c..acf025a2 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -57,10 +57,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
return
}
- if len(params["branchname"]) == 0 {
- params["branchname"] = "master"
- }
-
// Get tree path
treename := params["_1"]
@@ -177,7 +173,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
ctx.Data["Username"] = params["username"]
ctx.Data["Reponame"] = params["reponame"]
- ctx.Data["Branchname"] = params["branchname"]
var treenames []string
Paths := make([]string, 0)
@@ -216,10 +211,6 @@ func SingleDownload(ctx *middleware.Context, params martini.Params) {
return
}
- if len(params["branchname"]) == 0 {
- params["branchname"] = "master"
- }
-
// Get tree path
treename := params["_1"]
@@ -290,11 +281,6 @@ func Setting(ctx *middleware.Context, params martini.Params) {
title = t
}
- if len(params["branchname"]) == 0 {
- params["branchname"] = "master"
- }
-
- ctx.Data["Branchname"] = params["branchname"]
ctx.Data["Title"] = title + " - settings"
ctx.HTML(200, "repo/setting")
}