diff --git a/powrap/powrap.py b/powrap/powrap.py index 17be2f1..bc915f6 100644 --- a/powrap/powrap.py +++ b/powrap/powrap.py @@ -121,14 +121,16 @@ def main(): """Powrap main entrypoint (parsing command line and all).""" args = parse_args() if args.modified: - git_status = check_output(["git", "status", "--porcelain"], encoding="utf-8") + git_status = check_output( + ["git", "status", "--porcelain", "--no-renames"], encoding="utf-8" + ) git_status_lines = [ line.split(maxsplit=2) for line in git_status.split("\n") if line ] args.po_files.extend( Path(filename) for status, filename in git_status_lines - if filename.endswith(".po") + if filename.endswith(".po") and status != "D" ) if not args.po_files: print("Nothing to do, exiting.")