partial fix for issue #812

This commit is contained in:
Brad Rydzewski 2015-01-16 22:11:36 -08:00
parent 5dd08030e3
commit b8b01c2db4

View file

@ -149,6 +149,10 @@ func PutRepo(c web.C, w http.ResponseWriter, r *http.Request) {
if in.Params != nil {
repo.Params = *in.Params
if _, err := repo.ParamMap(); err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
}
if in.PostCommit != nil {
repo.PostCommit = *in.PostCommit