From 4223843a58e8a2eb332e68ebd9967713d6fe134d Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Wed, 30 Aug 2023 17:56:05 +0800 Subject: [PATCH 1/2] sync tags in adoptRepository --- services/repository/adopt.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/repository/adopt.go b/services/repository/adopt.go index f95fb5988f66b..ca0b7ae6c4e9d 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.go @@ -195,6 +195,10 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r return fmt.Errorf("updateRepository: %w", err) } + if err = repo_module.SyncReleasesWithTags(repo, gitRepo); err != nil { + return fmt.Errorf("syncReleasesWithTags: %w", err) + } + return nil } From 3bfedd9f0ac5d0100c353e064abc4b8f828d0d77 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 31 Aug 2023 01:12:59 +0200 Subject: [PATCH 2/2] Update services/repository/adopt.go Co-authored-by: KN4CK3R --- services/repository/adopt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/adopt.go b/services/repository/adopt.go index ca0b7ae6c4e9d..67604fd1b4e60 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.go @@ -196,7 +196,7 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r } if err = repo_module.SyncReleasesWithTags(repo, gitRepo); err != nil { - return fmt.Errorf("syncReleasesWithTags: %w", err) + return fmt.Errorf("SyncReleasesWithTags: %w", err) } return nil