diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 20:06:33 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 20:06:33 +0200 |
commit | f6897c78be5a5530129df50742cb6cabfb8609c9 (patch) | |
tree | 95b1311a3a4bfcdf4c2dba66f360e6985184013e /git/db/interface.py | |
parent | ba825ea244c70d342e0098b4ab4f62507be70f12 (diff) | |
download | gitpython-f6897c78be5a5530129df50742cb6cabfb8609c9.tar.gz |
Added additional opcodes to remote progress to make it compatible to newer git versions. This bug existed for quite a while but didn't show up as progress wasn't sent most of the time. All methods that could use a progress will only activate it if a progress is actually given
Diffstat (limited to 'git/db/interface.py')
-rw-r--r-- | git/db/interface.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/db/interface.py b/git/db/interface.py index 30b0c7c1..a4c05265 100644 --- a/git/db/interface.py +++ b/git/db/interface.py @@ -245,8 +245,8 @@ class RemoteProgress(object): Subclasses should derive from this type. """ - _num_op_codes = 5 - BEGIN, END, COUNTING, COMPRESSING, WRITING = [1 << x for x in range(_num_op_codes)] + _num_op_codes = 7 + BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING = [1 << x for x in range(_num_op_codes)] STAGE_MASK = BEGIN|END OP_MASK = ~STAGE_MASK |