From 0d054f889445688ace24d38b7c09ccde64f39247 Mon Sep 17 00:00:00 2001 From: Alexander Chernyakhovsky Date: Sun, 4 Sep 2011 18:33:29 -0400 Subject: [PATCH] Make wizard force-add all files in case upstream includes .gitignore files Signed-off-by: Alexander Chernyakhovsky --- wizard/command/prepare_pristine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.0