Merge branch 'patch-2' of https://github.com/talwai/salt into talwai-patch-2

This commit is contained in:
Thomas S Hatch 2014-09-03 08:46:35 -06:00
commit c1aa82173a

View File

@ -443,7 +443,9 @@ def init(cwd, opts=None, user=None):
salt '*' git.init /path/to/repo.git opts='--bare'
'''
_check_git()
if not opts:
opts = ''
cmd = 'git init {0} {1}'.format(cwd, opts)
return _git_run(cmd, runas=user)