Skip to content

Commit 1f1f219

Browse files
committed
Merge pull request saltstack#17064 from opdude/hg-quotations
Quotations are not necessary when passing cmd arguments in as an array
2 parents 15a5193 + 3edf142 commit 1f1f219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

salt/modules/hg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def clone(cwd, repository, opts=None, user=None):
237237
salt '*' hg.clone /path/to/repo https://bitbucket.org/birkenfeld/sphinx
238238
'''
239239
_check_hg()
240-
cmd = ['hg', 'clone', '"{0}"'.format(repository), '"{0}"'.format(cwd)]
240+
cmd = ['hg', 'clone', repository, cwd]
241241
if opts:
242242
for opt in opts.split():
243243
cmd.append('{0}'.format(opt))

0 commit comments

Comments
 (0)