m-adawi / swarm-cd

SwarmCD: Declarative GitOps and Continuous Deployment tool for Docker Swarm.
GNU General Public License v3.0
68 stars 2 forks source link

fix: non-fast-forward update on shallow clone #36

Closed sanzoghenzo closed 1 month ago

sanzoghenzo commented 2 months ago

fixes #33

This will perform a full clone of the repositories instead of a shallow clone.

I'm not a git expert, but from what I've read shallow clones are good for one-time download of a repo, and don't play well with subsequent fetches.

I also moved the "Already up to date" error check in the pullChanges function to entirely decouple the stack module from git.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 1.5.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: