Merge pull request #827 from bradrydzewski/master

partial fix for issue #812
This commit is contained in:
Brad Rydzewski 2015-01-16 22:17:23 -08:00
commit c8ac57c2ba

View file

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