Skip to content

Commit fe274c1

Browse files
authored
Add notags to fetch (#19487)
1 parent fc00286 commit fe274c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/migrations/gitea_uploader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ func (g *GiteaLocalUploader) updateGitForPullRequest(pr *base.PullRequest) (head
553553
}
554554

555555
if ok {
556-
_, _, err = git.NewCommand(g.ctx, "fetch", remote, pr.Head.Ref).RunStdString(&git.RunOpts{Dir: g.repo.RepoPath()})
556+
_, _, err = git.NewCommand(g.ctx, "fetch", "--no-tags", "--", remote, pr.Head.Ref).RunStdString(&git.RunOpts{Dir: g.repo.RepoPath()})
557557
if err != nil {
558558
log.Error("Fetch branch from %s failed: %v", pr.Head.CloneURL, err)
559559
} else {

0 commit comments

Comments
 (0)