summaryrefslogtreecommitdiffstats
path: root/file.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 /file.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 'file.c')
-rw-r--r--file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/file.c b/file.c
index f3c697b0d..be8935a88 100644
--- a/file.c
+++ b/file.c
@@ -428,8 +428,7 @@ int parse_file(const char *filename)
int ret;
git = is_git_repository(filename, &branch, NULL);
- if (strstr(filename, "https://cloud.subsurface-divelog.org/git")
- && git == dummy_git_repository)
+ if (strstr(filename, prefs.cloud_git_url) && git == dummy_git_repository)
/* opening the cloud storage repository failed for some reason
* give up here and don't send errors about git repositories */
return 0;