From 17bb6d5147d0f6d4c6173b69dea5d3c134423ce1 Mon Sep 17 00:00:00 2001 From: Michael Edwards <medwards@walledcity.ca> Date: Fri, 22 Feb 2013 00:02:04 +0100 Subject: [PATCH] Ignore fetch info if it starts with POST --- git/remote.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/remote.py b/git/remote.py index ed01783ca..1c0d8cbcc 100644 --- a/git/remote.py +++ b/git/remote.py @@ -534,6 +534,8 @@ def _get_fetch_info_from_stderr(self, proc, progress): # read head information fp = open(join(self.repo.git_dir, 'FETCH_HEAD'),'r') fetch_head_info = fp.readlines() + if fetch_head_info[0].startswith('POST'): + fetch_head_info.pop(0) fp.close() assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, fetch_info_lines)