Support edit release and save as draft

This commit is contained in:
Unknown 2014-06-12 17:47:23 -04:00
parent fb0972afad
commit e07674bff1
13 changed files with 300 additions and 85 deletions

View file

@ -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 (