Merge pull request #827 from bradrydzewski/master
partial fix for issue #812
This commit is contained in:
commit
c8ac57c2ba
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 {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue