digitalinteraction / data-officer

A central hub for Open Lab information and service status, written in Deno
https://twitter.com/ol_status
MIT License
0 stars 0 forks source link

Prefer not to "nuke" during the git sync #23

Open robb-j opened 1 year ago

robb-j commented 1 year ago

If it needs to nuke, it might be better to preserve what is already there until a success git pull can occur. ie the git sync fails because GH is down, then it nukes and tries again it isn't going to work.

It could

  1. clone into a fresh directory (tmdir?)
  2. exit 1 if that fails
  3. nuke the clean directory
  4. swap the clean clone into the right place