Merge pull request #28119 from jacksontj/fetch_issue

Check if the remote exists before casting to a string.
This commit is contained in:
Mike Place 2015-10-20 06:34:10 -06:00
commit 3fdb52d1bf

View file

@ -1375,10 +1375,8 @@ def fetch(cwd,
command.extend(
[x for x in _format_opts(opts) if x not in ('-f', '--force')]
)
if not isinstance(remote, six.string_types):
remote = str(remote)
if remote:
command.append(remote)
command.append(str(remote))
if refspecs is not None:
if isinstance(refspecs, (list, tuple)):
refspec_list = []