diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-08-31 09:18:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 21:18:15 -0400 |
commit | 8d7704b5a2f7a0c7425a32bbc875fed15f515b4a (patch) | |
tree | 04dd5badfbe842e5d2c6b77720282ede5b828c8b /modules/private | |
parent | c0f5da3e1adfe40cafc57de63948ef1878bd75c9 (diff) | |
download | gitea-8d7704b5a2f7a0c7425a32bbc875fed15f515b4a.tar.gz gitea-8d7704b5a2f7a0c7425a32bbc875fed15f515b4a.zip |
Fix dump and restore respository (#16698)
* Fix dump and restore
* return different error message for get commit
* Fix missing delete release attachment when deleting repository
* Fix ci and add some comments
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/private')
-rw-r--r-- | modules/private/restore_repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go index feb2e1d141..b5592278ab 100644 --- a/modules/private/restore_repo.go +++ b/modules/private/restore_repo.go @@ -54,6 +54,7 @@ func RestoreRepo(ctx context.Context, repoDir, ownerName, repoName string, units if err := json.Unmarshal(body, &ret); err != nil { return http.StatusInternalServerError, fmt.Sprintf("Response body Unmarshal error: %v", err.Error()) } + return http.StatusInternalServerError, ret.Err } return http.StatusOK, fmt.Sprintf("Restore repo %s/%s successfully", ownerName, repoName) |