diff options
author | Matt Jordan <mjordan@digium.com> | 2015-04-15 16:15:10 -0500 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2015-04-15 16:15:10 -0500 |
commit | 6d83f44007c5c581eae7ddc6c5de33311b7c1895 (patch) | |
tree | 0bddf7fc9ead9bae0f84dd127c10d461a299eedc | |
parent | f9e7a3d93da741f81a5af2e84422376c54f1f337 (diff) | |
download | gitpython-6d83f44007c5c581eae7ddc6c5de33311b7c1895.tar.gz |
fix(util): Correct number of op codes
The previous patch failed to update the expected number of op_codes,
which would result in an exception when creating an instance of
RemoteProgress. This patch corrects the value to the new expected number
of op_codes (8)
-rw-r--r-- | git/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/util.py b/git/util.py index 547da093..ec605b0b 100644 --- a/git/util.py +++ b/git/util.py @@ -164,7 +164,7 @@ class RemoteProgress(object): Handler providing an interface to parse progress information emitted by git-push and git-fetch and to dispatch callbacks allowing subclasses to react to the progress. """ - _num_op_codes = 7 + _num_op_codes = 8 BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING, FINDING_SOURCES = [1 << x for x in range(_num_op_codes)] STAGE_MASK = BEGIN | END OP_MASK = ~STAGE_MASK |