Skip to content

Commit f887ed0

Browse files
committed
Fix adopt repository has empty object name in database
1 parent a975ce8 commit f887ed0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/repository/branch.go

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func SyncRepoBranchesWithRepo(ctx context.Context, repo *repo_model.Repository,
4545
if err != nil {
4646
return 0, fmt.Errorf("UpdateRepository: %w", err)
4747
}
48+
repo.ObjectFormatName = objFmt.Name() // keep consistent with db
4849

4950
allBranches := container.Set[string]{}
5051
{

0 commit comments

Comments
 (0)