Commit dcb91c4
committed
Handle missing
Close go-gitea#22934
In `/user/repos` API (and other APIs related to creating repos), user
can specify a readme template for auto init. At present, if the
specified template does not exist, a `500` will be returned . This PR
improved the logic and will return a `400` instead of `500`.README in create repos API (go-gitea#23387)1 parent 4c1e248 commit dcb91c4
File tree
3 files changed
+22
-0
lines changed- routers/api/v1
- admin
- repo
- templates/swagger
3 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
234 | 241 | | |
235 | 242 | | |
236 | 243 | | |
| |||
283 | 290 | | |
284 | 291 | | |
285 | 292 | | |
| 293 | + | |
| 294 | + | |
286 | 295 | | |
287 | 296 | | |
288 | 297 | | |
| |||
464 | 473 | | |
465 | 474 | | |
466 | 475 | | |
| 476 | + | |
| 477 | + | |
467 | 478 | | |
468 | 479 | | |
469 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
| |||
1920 | 1923 | | |
1921 | 1924 | | |
1922 | 1925 | | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
1923 | 1929 | | |
1924 | 1930 | | |
1925 | 1931 | | |
| |||
13223 | 13229 | | |
13224 | 13230 | | |
13225 | 13231 | | |
| 13232 | + | |
| 13233 | + | |
| 13234 | + | |
13226 | 13235 | | |
13227 | 13236 | | |
13228 | 13237 | | |
| |||
0 commit comments