diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 09:35:56 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 09:35:56 +0100 |
commit | 0ed61f72c611deb07e0368cebdc9f06da32150cd (patch) | |
tree | f9e93d74ca2fd99863785605404763eddd33cb2b /git | |
parent | fe2fbc5913258ef8379852c6d45fcf226b09900b (diff) | |
download | gitpython-issue-232-reproduction.tar.gz |
removed debug codeissue-232-reproduction
Diffstat (limited to 'git')
-rw-r--r-- | git/remote.py | 10 |
1 files changed, 1 insertions, 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() |