From 0ed61f72c611deb07e0368cebdc9f06da32150cd Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Jan 2015 09:35:56 +0100 Subject: removed debug code --- git/remote.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/git/remote.py b/git/remote.py index 5d9cba1b..dbb82796 100644 --- a/git/remote.py +++ b/git/remote.py @@ -338,7 +338,7 @@ class Remote(LazyMixin, Iterable): NOTE: When querying configuration, the configuration accessor will be cached to speed up subsequent accesses.""" - __slots__ = ("repo", "name", "_config_reader", "fetch_no") + __slots__ = ("repo", "name", "_config_reader") _id_attribute_ = "name" def __init__(self, repo, name): @@ -348,7 +348,6 @@ class Remote(LazyMixin, Iterable): :param name: the name of the remote, i.e. 'origin'""" self.repo = repo self.name = name - self.fetch_no = 0 if os.name == 'nt': # some oddity: on windows, python 2.5, it for some reason does not realize @@ -524,10 +523,8 @@ class Remote(LazyMixin, Iterable): progress_handler = progress.new_message_handler() - stderr_fetch = open(join(self.repo.git_dir, '%03i_debug_git-python_stderr' % self.fetch_no), 'wb') for line in proc.stderr: line = line.decode(defenc) - stderr_fetch.write((line).encode(defenc)) line = line.rstrip() for pline in progress_handler(line): if line.startswith('fatal:'): @@ -544,13 +541,8 @@ class Remote(LazyMixin, Iterable): # We are only interested in stderr here ... finalize_process(proc) - stderr_fetch.close() # read head information - import shutil - shutil.copyfile(join(self.repo.git_dir, 'FETCH_HEAD'), - join(self.repo.git_dir, '%03i_debug_git-python_FETCH_HEAD' % self.fetch_no)) - self.fetch_no += 1 fp = open(join(self.repo.git_dir, 'FETCH_HEAD'), 'rb') fetch_head_info = [l.decode(defenc) for l in fp.readlines()] fp.close() -- cgit v1.2.1