diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/repo.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index db808d743e..e3683a1498 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -146,10 +146,6 @@ func RepoAssignment(args ...bool) macaron.Handler { userName := ctx.Params(":username") repoName := ctx.Params(":reponame") - refName := ctx.Params(":branchname") - if len(refName) == 0 { - refName = ctx.Params(":path") - } // Check if the user is the same as the repository owner if ctx.IsSigned && ctx.User.LowerName == strings.ToLower(userName) { |