From 10d4361a5c17ca049c29eef0e883f09584027003 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 22 Dec 2025 19:28:20 -0800 Subject: [PATCH] Fix lint --- modules/git/repo.go | 2 +- services/repository/init.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/git/repo.go b/modules/git/repo.go index 046d639c42..9f348ca977 100644 --- a/modules/git/repo.go +++ b/modules/git/repo.go @@ -186,7 +186,7 @@ func Clone(ctx context.Context, from, to string, opts CloneRepoOptions) error { // PushOptions options when push to remote type PushOptions struct { Remote string - LocalBranch string + LocalBranch string Branch string Force bool ForceWithLease string diff --git a/services/repository/init.go b/services/repository/init.go index 733528673c..a3ca005f6e 100644 --- a/services/repository/init.go +++ b/services/repository/init.go @@ -75,8 +75,8 @@ func initRepoCommit(ctx context.Context, tmpPath string, repo *repo_model.Reposi if err := gitrepo.PushFromLocal(ctx, tmpPath, repo, git.PushOptions{ LocalBranch: "HEAD", - Branch: defaultBranch, - Env: repo_module.InternalPushingEnvironment(u, repo), + Branch: defaultBranch, + Env: repo_module.InternalPushingEnvironment(u, repo), }); err != nil { log.Error("Failed to push back to HEAD Error: %v", err) return fmt.Errorf("git push: %w", err)