summaryrefslogtreecommitdiffstats
path: root/core/git-access.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-01-13 00:00:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-01-19 09:45:08 +0200
commit5a767ce9644b12e2eab5ef928ebb9673f36fcff8 (patch)
tree3a70beeca69e3f8264536e98af3cbbc2264dd329 /core/git-access.h
parentcec642b4d21c55cdddbb57067565f69ca080bf1e (diff)
downloadsubsurface-5a767ce9644b12e2eab5ef928ebb9673f36fcff8.tar.gz
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>
Diffstat (limited to 'core/git-access.h')
-rw-r--r--core/git-access.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/git-access.h b/core/git-access.h
index 6dec7a56b..77ff106a0 100644
--- a/core/git-access.h
+++ b/core/git-access.h
@@ -25,6 +25,7 @@ extern int do_git_save(git_repository *repo, const char *branch, const char *rem
extern const char *saved_git_id;
extern void clear_git_id(void);
extern void set_git_id(const struct git_oid *);
+extern enum remote_transport url_to_remote_transport(const char *remote);
void set_git_update_cb(int(*)(const char *));
int git_storage_update_progress(const char *text);
char *get_local_dir(const char *remote, const char *branch);