diff options
author | 6543 <6543@obermui.de> | 2022-04-25 15:07:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 15:07:08 +0200 |
commit | fe274c148bc516b63aa89ab1904d124e60903421 (patch) | |
tree | 748a2f07cc074afb5f6ebddff214e772cfc442b3 | |
parent | fc002860d8fee23ce6fe018e81c449398d9c51c0 (diff) | |
download | gitea-fe274c148bc516b63aa89ab1904d124e60903421.tar.gz gitea-fe274c148bc516b63aa89ab1904d124e60903421.zip |
Add notags to fetch (#19487)
-rw-r--r-- | services/migrations/gitea_uploader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go index 275b7026a0..0303b0d60c 100644 --- a/services/migrations/gitea_uploader.go +++ b/services/migrations/gitea_uploader.go @@ -553,7 +553,7 @@ func (g *GiteaLocalUploader) updateGitForPullRequest(pr *base.PullRequest) (head } if ok { - _, _, err = git.NewCommand(g.ctx, "fetch", remote, pr.Head.Ref).RunStdString(&git.RunOpts{Dir: g.repo.RepoPath()}) + _, _, err = git.NewCommand(g.ctx, "fetch", "--no-tags", "--", remote, pr.Head.Ref).RunStdString(&git.RunOpts{Dir: g.repo.RepoPath()}) if err != nil { log.Error("Fetch branch from %s failed: %v", pr.Head.CloneURL, err) } else { |