Signed-off-by: Alexander Chernyakhovsky <achernya@MIT.EDU>
if not filenames and not dirnames:
open(os.path.join(dirpath, ".preserve-dir"), "w").write("")
# stage all changes
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)
for f in shell.call("git", "ls-files", "-d", "-z")[0].split("\0"):
if f != "":
shell.call("git", "rm", "--", f)