summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-19 10:28:41 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-19 10:28:41 +0100
commitc5025b8de2220123cd80981bb2ddecdd2ea573f6 (patch)
tree18cf7ba2451e985c063f715c5fa09c0796985f5d
parent95436186ffb11f51a0099fe261a2c7e76b29c8a6 (diff)
downloadgitpython-c5025b8de2220123cd80981bb2ddecdd2ea573f6.tar.gz
Removed assertion inserted in previous commit
-rw-r--r--git/remote.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/git/remote.py b/git/remote.py
index 8adc2dc1..c1fc8078 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -349,8 +349,6 @@ class Remote(LazyMixin, Iterable):
__slots__ = ("repo", "name", "_config_reader")
_id_attribute_ = "name"
- _re_find_info = re.compile(r'\b(\S+)\s+->\s')
-
def __init__(self, repo, name):
"""Initialize a remote instance
@@ -515,9 +513,6 @@ class Remote(LazyMixin, Iterable):
# this also waits for the command to finish
# Skip some progress lines that don't provide relevant information
fetch_info_lines = list()
- # NOTE: We only keep this information for an assertion, which might as well go away.
- # Implementation based on https://github.com/gitpython-developers/GitPython/pull/143
- seen_refs = set()
for line in digest_process_messages(proc.stderr, progress):
if line.startswith('From') or line.startswith('remote: Total') or line.startswith('POST') \
or line.startswith(' ='):
@@ -528,9 +523,6 @@ class Remote(LazyMixin, Iterable):
elif line.startswith('fatal:'):
raise GitCommandError(("Error when fetching: %s" % line,), 2)
# END handle special messages
- ref = self._re_find_info.search(line)
- if ref:
- seen_refs.add(ref.group(1))
fetch_info_lines.append(line)
# END for each line
@@ -543,8 +535,6 @@ class Remote(LazyMixin, Iterable):
# I simply couldn't stand it anymore, so here is the quick and dirty fix ... .
# This project needs a lot of work !
# assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, fetch_info_lines)
- assert len(seen_refs) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, seen_refs)
-
output.extend(FetchInfo._from_line(self.repo, err_line, fetch_line)
for err_line, fetch_line in zip(fetch_info_lines, fetch_head_info))