summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-04-15 16:15:10 -0500
committerMatt Jordan <mjordan@digium.com>2015-04-15 16:15:10 -0500
commit6d83f44007c5c581eae7ddc6c5de33311b7c1895 (patch)
tree0bddf7fc9ead9bae0f84dd127c10d461a299eedc
parentf9e7a3d93da741f81a5af2e84422376c54f1f337 (diff)
downloadgitpython-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.py2
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