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

Commitbfaf706

Browse files
committed
fix(remote): asssertion message formatting
Related to#396
1 parentc4c6851 commitbfaf706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/remote.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,11 +607,12 @@ def stdout_handler(line):
607607
def_assert_refspec(self):
608608
"""Turns out we can't deal with remotes if the refspec is missing"""
609609
config=self.config_reader
610+
unset='placeholder'
610611
try:
611-
ifconfig.get_value('fetch',default=type)istype:
612+
ifconfig.get_value('fetch',default=unset)isunset:
612613
msg="Remote '%s' has no refspec set.\n"
613614
msg+="You can set it as follows:"
614-
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)
615616
raiseAssertionError(msg)
616617
finally:
617618
config.release()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp