diff --git a/pelican_deploy/deploy.py b/pelican_deploy/deploy.py index ff12bed..f307475 100644 --- a/pelican_deploy/deploy.py +++ b/pelican_deploy/deploy.py @@ -81,7 +81,7 @@ class DeploymentRunner: # forcefully reset the working tree build_repo.head.reset(index=True, working_tree=True) try: - build_repo.git.clean(force=True) + build_repo.git.clean(force=True, d=True, x=True) except: log.warning("git clean failed!", exc_info=True)