X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/2b5c97328b4b24ff129966b8ee33cac07c560cc1..0d054f889445688ace24d38b7c09ccde64f39247:/wizard/command/prepare_pristine.py diff --git a/wizard/command/prepare_pristine.py b/wizard/command/prepare_pristine.py index d4c9233..ad66072 100644 --- a/wizard/command/prepare_pristine.py +++ b/wizard/command/prepare_pristine.py @@ -34,7 +34,7 @@ def main(argv, baton): if not filenames and not dirnames: open(os.path.join(dirpath, ".preserve-dir"), "w").write("") # stage all changes - shell.call("git", "add", ".") + shell.call("git", "add", "-f", ".") for f in shell.call("git", "ls-files", "-d", "-z")[0].split("\0"): if f != "": shell.call("git", "rm", "--", f)