Error on Git Fetch with Execution

Helllo Everyone! I have this issue:

Reinitialized exisiting git repository in /home/gitlab-runner/…
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly

The project is with one runner on the server, with Centos7 and Apache HTTP.
The other projects running with GitLab work fine, only this one has this problem when deploying the project from the GitLab UI in GitLab.com

I have the same projects on another server with the same configuration, and there’s no problem with it.

This is the gitlab-ci.yml:

stages:
    - dev-deploy
    - produccion-deploy
dev_deploy:
    stage: dev-deploy
    script: 
        - chmod guo+xwr doc/pipeline/ -R
        - ./doc/pipeline/build.sh
        - ./doc/pipeline/deploy.sh
    only:
        - main
        - branches
    when: manual
    tags:
        - distribuidor
        
produccion-deploy:
    stage: produccion-deploy
    script: 
        - chmod guo+xwr doc/pipeline/ -R
        - ./doc/pipeline/build.sh
        - ./doc/pipeline/deploy.sh
    only:
        - tags
    when: manual
    environment: 
        name: produccion/$CI_COMMIT_TAG
    tags:
        - prod-distribuidor

¿Does anyone know why could this be happening? :thinking:

What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

Thanks for taking the time and the help, it is really valuable for me! :blush: