mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
gitfs: Support ssh:// URLs for dulwich
This commit is contained in:
parent
cc248c2d51
commit
7ed9c66b02
@ -894,6 +894,9 @@ def _init_dulwich(rp_, repo_url, ssl_verify):
|
||||
successful, otherwise return None. Also return a boolean that will tell
|
||||
init() whether a new repo was initialized.
|
||||
'''
|
||||
if repo_url.startswith('ssh://'):
|
||||
# Dulwich will throw an error if 'ssh' is used.
|
||||
repo_url = 'git+' + repo_url
|
||||
new = False
|
||||
if not os.listdir(rp_):
|
||||
# Repo cachedir is empty, initialize a new repo there
|
||||
|
Loading…
Reference in New Issue
Block a user