partial fix for issue #812
This commit is contained in:
parent
5dd08030e3
commit
b8b01c2db4
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,10 @@ func PutRepo(c web.C, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if in.Params != nil {
|
if in.Params != nil {
|
||||||
repo.Params = *in.Params
|
repo.Params = *in.Params
|
||||||
|
if _, err := repo.ParamMap(); err != nil {
|
||||||
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if in.PostCommit != nil {
|
if in.PostCommit != nil {
|
||||||
repo.PostCommit = *in.PostCommit
|
repo.PostCommit = *in.PostCommit
|
||||||
|
|
Loading…
Reference in a new issue