From 819ece0a992d8ddc4f9af8c9d3482542a95a9af7 Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Thu, 9 Oct 2014 15:16:22 -0700 Subject: [PATCH] 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://...." --- salt/modules/hg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/hg.py b/salt/modules/hg.py index 1fd3d5c7e5..0e17caf4db 100644 --- a/salt/modules/hg.py +++ b/salt/modules/hg.py @@ -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))