Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ed61f7

Browse files
committed
removed debug code
1 parentfe2fbc5 commit0ed61f7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

‎git/remote.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Remote(LazyMixin, Iterable):
338338
NOTE: When querying configuration, the configuration accessor will be cached
339339
to speed up subsequent accesses."""
340340

341-
__slots__= ("repo","name","_config_reader","fetch_no")
341+
__slots__= ("repo","name","_config_reader")
342342
_id_attribute_="name"
343343

344344
def__init__(self,repo,name):
@@ -348,7 +348,6 @@ def __init__(self, repo, name):
348348
:param name: the name of the remote, i.e. 'origin'"""
349349
self.repo=repo
350350
self.name=name
351-
self.fetch_no=0
352351

353352
ifos.name=='nt':
354353
# some oddity: on windows, python 2.5, it for some reason does not realize
@@ -524,10 +523,8 @@ def _get_fetch_info_from_stderr(self, proc, progress):
524523

525524
progress_handler=progress.new_message_handler()
526525

527-
stderr_fetch=open(join(self.repo.git_dir,'%03i_debug_git-python_stderr'%self.fetch_no),'wb')
528526
forlineinproc.stderr:
529527
line=line.decode(defenc)
530-
stderr_fetch.write((line).encode(defenc))
531528
line=line.rstrip()
532529
forplineinprogress_handler(line):
533530
ifline.startswith('fatal:'):
@@ -544,13 +541,8 @@ def _get_fetch_info_from_stderr(self, proc, progress):
544541

545542
# We are only interested in stderr here ...
546543
finalize_process(proc)
547-
stderr_fetch.close()
548544

549545
# read head information
550-
importshutil
551-
shutil.copyfile(join(self.repo.git_dir,'FETCH_HEAD'),
552-
join(self.repo.git_dir,'%03i_debug_git-python_FETCH_HEAD'%self.fetch_no))
553-
self.fetch_no+=1
554546
fp=open(join(self.repo.git_dir,'FETCH_HEAD'),'rb')
555547
fetch_head_info= [l.decode(defenc)forlinfp.readlines()]
556548
fp.close()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp