diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-11 22:22:28 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-11 22:22:28 +0200 |
commit | b01824b1aecf8aadae4501e22feb45c20fb26bce (patch) | |
tree | d4bd7e5dc1f183938e95619de1b52944e23b9724 /lib/git/diff.py | |
parent | 708b8dda8e7b87841a5f39c60b799c514e75a9c7 (diff) | |
download | gitpython-b01824b1aecf8aadae4501e22feb45c20fb26bce.tar.gz |
Fixed remaining tests to deal with the changes
mode is now generally an int compatible to the stat module
Diffstat (limited to 'lib/git/diff.py')
-rw-r--r-- | lib/git/diff.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/diff.py b/lib/git/diff.py index 7200b7e3..943fb08a 100644 --- a/lib/git/diff.py +++ b/lib/git/diff.py @@ -62,6 +62,10 @@ class Diff(object): self.a_mode = a_mode self.b_mode = b_mode + if self.a_mode: + self.a_mode = blob.Blob._mode_str_to_int( self.a_mode ) + if self.b_mode: + self.b_mode = blob.Blob._mode_str_to_int( self.b_mode ) self.new_file = new_file self.deleted_file = deleted_file self.rename_from = rename_from |