mirror of
https://github.com/go-gitea/gitea
synced 2025-07-13 14:07:20 +00:00
Support edit release and save as draft
This commit is contained in:
@ -21,21 +21,17 @@ import (
|
||||
|
||||
func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
||||
return func(ctx *Context, params martini.Params) {
|
||||
log.Trace(fmt.Sprint(args))
|
||||
// valid brachname
|
||||
var validBranch bool
|
||||
// display bare quick start if it is a bare repo
|
||||
var displayBare bool
|
||||
|
||||
if len(args) >= 1 {
|
||||
// Note: argument has wrong value in Go1.3 martini.
|
||||
// validBranch = args[0]
|
||||
validBranch = true
|
||||
validBranch = args[0]
|
||||
}
|
||||
|
||||
if len(args) >= 2 {
|
||||
// displayBare = args[1]
|
||||
displayBare = true
|
||||
displayBare = args[1]
|
||||
}
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user