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/*