From c1d3345a013981868788587ac395e4ef787a9252 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Mon, 11 May 2026 11:29:05 +0200 Subject: [PATCH] fix: force-update tags on git fetch to handle rewritten remote tags --- src/Service/GitSynchronizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/GitSynchronizer.php b/src/Service/GitSynchronizer.php index deae5f7..4fd46af 100644 --- a/src/Service/GitSynchronizer.php +++ b/src/Service/GitSynchronizer.php @@ -50,7 +50,7 @@ final class GitSynchronizer $this->runGit(['git', '-C', $repositoryDir, 'remote', 'set-url', 'origin', $mapping->getRepositoryUrl()], null, $env); } - $this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', 'origin', $mapping->getGitRef()], null, $env); + $this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', '--force', 'origin', $mapping->getGitRef()], null, $env); $this->runGit(['git', '-C', $repositoryDir, 'checkout', '--force', 'FETCH_HEAD'], null, $env); return $repositoryDir;