There was an error while loading. Please reload this page.
2 parents e129846 + abd23a3 commit 8c6d952Copy full SHA for 8c6d952
2 files changed
git/test/test_docs.py
@@ -94,7 +94,7 @@ def test_init_repo_object(self, rw_dir):
94
# [11-test_init_repo_object]
95
assert now.commit.message != past.commit.message
96
# You can read objects directly through binary streams, no working tree required
97
- assert (now.commit.tree / 'VERSION').data_stream.read().decode('ascii').startswith('0')
+ assert (now.commit.tree / 'VERSION').data_stream.read().decode('ascii').startswith('1')
98
99
# You can traverse trees as well to handle all contained files of a particular commit
100
file_count = 0
git/util.py
@@ -164,8 +164,9 @@ class RemoteProgress(object):
164
Handler providing an interface to parse progress information emitted by git-push
165
and git-fetch and to dispatch callbacks allowing subclasses to react to the progress.
166
"""
167
- _num_op_codes = 7
168
- BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING = [1 << x for x in range(_num_op_codes)]
+ _num_op_codes = 8
+ BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING, FINDING_SOURCES = \
169
+ [1 << x for x in range(_num_op_codes)]
170
STAGE_MASK = BEGIN | END
171
OP_MASK = ~STAGE_MASK
172
@@ -227,6 +228,8 @@ def _parse_progress_line(self, line):
227
228
op_code |= self.RECEIVING
229
elif op_name == 'Resolving deltas':
230
op_code |= self.RESOLVING
231
+ elif op_name == 'Finding sources':
232
+ op_code |= self.FINDING_SOURCES
233
else:
234
# Note: On windows it can happen that partial lines are sent
235
# Hence we get something like "CompreReceiving objects", which is
0 commit comments