Skip to content

Commit af88244

Browse files
committed
remove unrelated change
1 parent 1f10d85 commit af88244

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

services/repository/adopt.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@ func AdoptRepository(ctx context.Context, doer, u *user_model.User, opts CreateR
9090
return fmt.Errorf("checkDaemonExportOK: %w", err)
9191
}
9292

93-
// Initialize Issue Labels if selected
94-
if len(opts.IssueLabels) > 0 {
95-
if err := repo_module.InitializeLabels(ctx, repo.ID, opts.IssueLabels, false); err != nil {
96-
return fmt.Errorf("InitializeLabels: %w", err)
97-
}
98-
}
99-
10093
if stdout, _, err := git.NewCommand("update-server-info").
10194
RunStdString(ctx, &git.RunOpts{Dir: repoPath}); err != nil {
10295
log.Error("CreateRepository(git update-server-info) in %v: Stdout: %s\nError: %v", repo, stdout, err)

0 commit comments

Comments
 (0)