X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/6cd62e795e3716aa0cbd2d1ff8c1b3a345803563..f6a545b00a4046879b7cc25c06c37bb6b6880b43:/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`); } -} +};