Browse Source

merged with original develop

pull/1630/head
Kim Lindhardt Madsen 9 years ago
parent
commit
4aa4341cae
  1. 2
      routers/api/v1/repo.go

2
routers/api/v1/repo.go

@ -199,7 +199,7 @@ func ForkRepo(ctx *middleware.Context) {
if models.IsErrRepoAlreadyExist(err) ||
models.IsErrNameReserved(err) ||
models.IsErrNamePatternNotAllowed(err) {
ctx.JSON(422, &base.ApiJsonErr{err.Error(), base.DOC_URL})
ctx.APIError(422, "ForkRepository", err)
} else {
log.Error(4, "ForkRepository: %v", err)
if forkedRepo != nil {

Loading…
Cancel
Save