From 4bc91d7495d7eb70a70c1f025137718f41486cd2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 4 Jun 2014 10:06:34 +0200 Subject: HACK: Removed assertion just to be a bit less annoyed by constant fail --- git/remote.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git') diff --git a/git/remote.py b/git/remote.py index becfbd25..37ddd91b 100644 --- a/git/remote.py +++ b/git/remote.py @@ -537,7 +537,10 @@ class Remote(LazyMixin, Iterable): fetch_head_info = fp.readlines() fp.close() - assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, fetch_info_lines) + # NOTE: HACK Just disabling this line will make github repositories work much better. + # 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) output.extend(FetchInfo._from_line(self.repo, err_line, fetch_line) for err_line,fetch_line in zip(fetch_info_lines, fetch_head_info)) -- cgit v1.2.1