diff options
author | Alexey 〒erentyev <axifnx@gmail.com> | 2021-09-26 00:29:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 00:29:25 +0300 |
commit | 7e9bd206fd13a34ccdd59dfa8bf5474e5e7f000d (patch) | |
tree | 2bf772fb852175065a003ad664f16bbc23f49687 /services | |
parent | 58d81835e2e78cc218d238c580a58cdd54535b44 (diff) | |
download | gitea-7e9bd206fd13a34ccdd59dfa8bf5474e5e7f000d.tar.gz gitea-7e9bd206fd13a34ccdd59dfa8bf5474e5e7f000d.zip |
Fix bundle creation (#17079)
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Gwyneth Morgan <87623694+gwymor@users.noreply.github.com>
Co-authored-by: Gwyneth Morgan <gwymor@tilde.club>
Diffstat (limited to 'services')
-rw-r--r-- | services/archiver/archiver.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/archiver/archiver.go b/services/archiver/archiver.go index 6d4d46e4e0..d602b9ed7f 100644 --- a/services/archiver/archiver.go +++ b/services/archiver/archiver.go @@ -136,9 +136,11 @@ func doArchive(r *ArchiveRequest) (*models.RepoArchiver, error) { if err == nil { if archiver.Status == models.RepoArchiverGenerating { archiver.Status = models.RepoArchiverReady - return archiver, models.UpdateRepoArchiverStatus(ctx, archiver) + if err = models.UpdateRepoArchiverStatus(ctx, archiver); err != nil { + return nil, err + } } - return archiver, nil + return archiver, committer.Commit() } if !errors.Is(err, os.ErrNotExist) { |