diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 17:15:11 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 17:15:11 +0100 |
| commit | 10a76a5bf0a9d051aa9432566088034c5ced714b (patch) | |
| tree | fe2999541841f7f9c74839bb2835d4a050696890 /lib/remotes/git.js | |
| parent | 6cd62e795e3716aa0cbd2d1ff8c1b3a345803563 (diff) | |
Lint
Diffstat (limited to 'lib/remotes/git.js')
| -rw-r--r-- | lib/remotes/git.js | 5 |
1 files changed, 3 insertions, 2 deletions
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`); } -} +}; |