From 0ab3730c43999aa84f23d2cb14c96021267b87b3 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 22 Mar 2024 22:32:42 -0600 Subject: [PATCH] fix unshallow --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 8903b62..d8112af 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -58,7 +58,7 @@ steps: secrets: [ cb_git_auth ] commands: - git remote add codeberg https://$CB_GIT_AUTH@codeberg.org/forgejo-contrib/forgejo-deb - - git fetch --unshallow origin + - if ( $(git rev-parse --is-shallow-repository) == "true" );then; git fetch --unshallow origin ;fi - git fetch codeberg - git push codeberg --tags refs/remotes/origin/*:refs/heads/*