diff options
Diffstat (limited to 'fastimport/commands.py')
-rw-r--r-- | fastimport/commands.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fastimport/commands.py b/fastimport/commands.py index d83b905..c23a337 100644 --- a/fastimport/commands.py +++ b/fastimport/commands.py @@ -321,15 +321,15 @@ class FileModifyCommand(FileCommand): return self.to_string(include_file_contents=False) def _format_mode(self, mode): - if mode in (0755, 0100755): + if mode in (0o755, 0o100755): return "755" - elif mode in (0644, 0100644): + elif mode in (0o644, 0o100644): return "644" - elif mode == 040000: + elif mode == 0o40000: return "040000" - elif mode == 0120000: + elif mode == 0o120000: return "120000" - elif mode == 0160000: + elif mode == 0o160000: return "160000" else: raise AssertionError("Unknown mode %o" % mode) |