We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c6851 commit bfaf706Copy full SHA for bfaf706
git/remote.py
@@ -607,11 +607,12 @@ def stdout_handler(line):
607
def _assert_refspec(self):
608
"""Turns out we can't deal with remotes if the refspec is missing"""
609
config = self.config_reader
610
+ unset = 'placeholder'
611
try:
- if config.get_value('fetch', default=type) is type:
612
+ if config.get_value('fetch', default=unset) is unset:
613
msg = "Remote '%s' has no refspec set.\n"
614
msg += "You can set it as follows:"
- msg += " 'git config --add \"remote.%s.fetch +refs/heads/*:refs/heads/*\"'." % self.name
615
+ msg += " 'git config --add \"remote.%s.fetch +refs/heads/*:refs/heads/*\"'." % (self.name, self.name)
616
raise AssertionError(msg)
617
finally:
618
config.release()
0 commit comments