aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 78fe4b25..a9d87993 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -31,6 +31,10 @@ func Issues(ctx *middleware.Context, params martini.Params) {
return
}
+ if len(params["branchname"]) == 0 {
+ params["branchname"] = "master"
+ }
+ ctx.Data["Branchname"] = params["branchname"]
ctx.HTML(200, "repo/issues")
}