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;