mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Support non-https:// repositories for saving
On saving to a remote git repository, the transport was set to https://, which broke saving to ssh:// repositories. Instead determine the transport from the remote url. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cec642b4d2
commit
5a767ce964
3 changed files with 14 additions and 10 deletions
|
@ -1274,7 +1274,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
|
|||
|
||||
/* now sync the tree with the remote server */
|
||||
if (remote && !prefs.git_local_only)
|
||||
return sync_with_remote(repo, remote, branch, RT_HTTPS);
|
||||
return sync_with_remote(repo, remote, branch, url_to_remote_transport(remote));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue