Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix adopt repository has empty object name in database
  • Loading branch information
lunny committed Jun 12, 2024
commit f887ed08074cc7b7723b8ba0a85c69835cc1bddd
1 change: 1 addition & 0 deletions modules/repository/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]{}
{
Expand Down