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

Commitccb653d

Browse files
committed
Merge pull request#402 from rrei/master
Remove assertion over fetch refspec when explicitly specifiedFixes#396
2 parents20a338f +e61e320 commitccb653d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎git/remote.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,9 @@ def fetch(self, refspec=None, progress=None, **kwargs):
644644
:note:
645645
As fetch does not provide progress information to non-ttys, we cannot make
646646
it available here unfortunately as in the 'push' method."""
647-
self._assert_refspec()
647+
ifrefspecisNone:
648+
# No argument refspec, then ensure the repo's config has a fetch refspec.
649+
self._assert_refspec()
648650
kwargs=add_progress(kwargs,self.repo.git,progress)
649651
ifisinstance(refspec,list):
650652
args=refspec
@@ -666,7 +668,9 @@ def pull(self, refspec=None, progress=None, **kwargs):
666668
:param progress: see 'push' method
667669
:param kwargs: Additional arguments to be passed to git-pull
668670
:return: Please see 'fetch' method """
669-
self._assert_refspec()
671+
ifrefspecisNone:
672+
# No argument refspec, then ensure the repo's config has a fetch refspec.
673+
self._assert_refspec()
670674
kwargs=add_progress(kwargs,self.repo.git,progress)
671675
proc=self.repo.git.pull(self,refspec,with_stdout=False,as_process=True,v=True,**kwargs)
672676
res=self._get_fetch_info_from_stderr(proc,progressorRemoteProgress())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp