From b8f7fdee0bfb0220f3a695fcae6c6e9000d36de9 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Thu, 13 Apr 2023 12:39:19 +0200 Subject: [PATCH] FIX: Rebuild fails when tracked `version` switches from branch to tag We are replacing the `beta` branch with a tag of the same name. Rebuilding a container will fail when a user tracks the `beta` version and the base image was built at a time where `beta` was still a branch. This resolves that by pruning tags and branches and forcing an update of tags during the rebuild. --- templates/web.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index a9ab8ba..4c4f950 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -96,7 +96,7 @@ run: git remote set-branches origin $version git fetch --depth 1 origin $version else - git fetch --prune --prune-tags origin $version + git fetch --tags --prune-tags --prune --force origin fi ' - |- -- 2.25.1