summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-15 06:05:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-15 10:22:00 -0700
commitc593dea119b4c5fa77a8b2cc129d048d7d56afa4 (patch)
tree89e7e7105fb6d8d625f880e6b709cfe23e6d144a /save-git.c
parent617b105458f362516de9bf2997f747de5dc14e44 (diff)
downloadsubsurface-c593dea119b4c5fa77a8b2cc129d048d7d56afa4.tar.gz
Cloud storage: use preference member instead of hard coded strings
This creates the basis to allow other backends to be used with the cloud storage infrastructure. So far this should all just transparently continue to work. A user would have to manually add the cloud_base_url entry to the CloudStorage section in their config file in order to use a different backend server. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index d4247c0d0..6e44b0851 100644
--- a/save-git.c
+++ b/save-git.c
@@ -1141,7 +1141,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
if (prefs.cloud_background_sync) {
/* now sync the tree with the cloud server */
- if (strstr(remote, "https://cloud.subsurface-divelog.org")) {
+ if (strstr(remote, prefs.cloud_git_url)) {
return sync_with_remote(repo, remote, branch, RT_HTTPS);
}
}