async syncDown(remote, blogDirectory) {
await internals.exec(`cd ${blogDirectory} && git init`);
- await internals.exec(`cd ${blogDirectory} && git checkout .`);
+ try {
+ await internals.exec(`cd ${blogDirectory} && git checkout .`);
+ }
+ catch {}
await internals.exec(`cd ${blogDirectory} && git clean . -f`);
await internals.exec(`cd ${blogDirectory} && git pull ${remote} main`);
}