X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/6cd62e795e3716aa0cbd2d1ff8c1b3a345803563..606f82c76540a9d80366fdb943c06abe525f662e:/lib/remotes/git.js diff --git a/lib/remotes/git.js b/lib/remotes/git.js index f6d0c07..75ef43e 100644 --- a/lib/remotes/git.js +++ b/lib/remotes/git.js @@ -3,7 +3,7 @@ import { promisify } from 'util'; const internals = { // Promisified functions - exec: promisify(exec), + exec: promisify(exec) }; export default { @@ -28,7 +28,8 @@ export default { 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`); } -} +};