BUG: Removed extra quotes in hg.clone (not needed as cmd is already split as list) which was causing hg to abort on non-local repos like "ssh://...."

This commit is contained in:
Cimarron Mittelsteadt 2014-10-09 15:16:22 -07:00 committed by rallytime
parent c63546fe33
commit 819ece0a99

View File

@ -247,7 +247,7 @@ def clone(cwd, repository, opts=None, user=None, identity=None):
salt '*' hg.clone /path/to/repo https://bitbucket.org/birkenfeld/sphinx
'''
_check_hg()
cmd = ['hg', 'clone', '"{0}"'.format(repository), '"{0}"'.format(cwd)]
cmd = ['hg', 'clone', '{0}'.format(repository), '{0}'.format(cwd)]
if opts:
for opt in opts.split():
cmd.append('{0}'.format(opt))