mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge branch 'patch-2' of https://github.com/talwai/salt into talwai-patch-2
This commit is contained in:
commit
c1aa82173a
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user