8000 Merge branch 'matt-jordan-remote_source' · githubdelegate/GitPython@8c6d952 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c6d952

Browse files
committed
Merge branch 'matt-jordan-remote_source'
2 parents e129846 + abd23a3 commit 8c6d952

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

git/test/test_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_init_repo_object(self, rw_dir):
9494
# [11-test_init_repo_object]
9595
assert now.commit.message != past.commit.message
9696
# 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')
97+
assert (now.commit.tree / 'VERSION').data_stream.read().decode('ascii').startswith('1')
9898

9999
# You can traverse trees as well to handle all contained files of a particular commit
100100
file_count = 0

git/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ class RemoteProgress(object):
164164
Handler providing an interface to parse progress information emitted by git-push
165165
and git-fetch and to dispatch callbacks allowing subclasses to react to the progress.
166166
"""
167-
_num_op_codes = 7
168-
BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING = [1 << x for x in range(_num_op_codes)]
167+
_num_op_codes = 8
168+
BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING, FINDING_SOURCES = \
169+
[1 << x for x in range(_num_op_codes)]
169170
STAGE_MASK = BEGIN | END
170171
OP_MASK = ~STAGE_MASK
171172

@@ -227,6 +228,8 @@ def _parse_progress_line(self, line):
227228
op_code |= self.RECEIVING
228229
elif op_name == 'Resolving deltas':
229230
op_code |= self.RESOLVING
231+
elif op_name == 'Finding sources':
232+
op_code |= self.FINDING_SOURCES
230233
else:
231234
# Note: On windows it can happen that partial lines are sent
232235
# Hence we get something like "CompreReceiving objects", which is

0 commit comments

Comments
 (0)
0