basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.51k stars 398 forks source link

Handle corrupt git clones #821

Closed djmb closed 4 months ago

djmb commented 4 months ago

When cloning the git repo:

  1. Try to clone
  2. If there's already a build directory reset it
  3. Check the clone is valid

If anything goes wrong during that process:

  1. Delete the clone directory
  2. Clone it again
  3. Check the clone is valid

Raise any errors after that