From f887ed08074cc7b7723b8ba0a85c69835cc1bddd Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 12 Jun 2024 17:50:52 +0800 Subject: [PATCH] Fix adopt repository has empty object name in database --- modules/repository/branch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/repository/branch.go b/modules/repository/branch.go index a3fca7c7ce401..2bf9930f19fd3 100644 --- a/modules/repository/branch.go +++ b/modules/repository/branch.go @@ -45,6 +45,7 @@ func SyncRepoBranchesWithRepo(ctx context.Context, repo *repo_model.Repository, if err != nil { return 0, fmt.Errorf("UpdateRepository: %w", err) } + repo.ObjectFormatName = objFmt.Name() // keep consistent with db allBranches := container.Set[string]{} {