aboutsummaryrefslogtreecommitdiffstats
path: root/core/pref.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-10 17:40:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-19 12:51:01 -0700
commitc5eb806adb345e24b13ac4bf106cceb1dc9d3431 (patch)
treea071c9dede0640e23dd8032e6b1d0863d85b983e /core/pref.c
parentda6395a4a8b68978caf47f98b48a82fabbe1dd20 (diff)
downloadsubsurface-c5eb806adb345e24b13ac4bf106cceb1dc9d3431.tar.gz
cloudstorage: some cleanup of cloud url handling
We know the preference is never empty, so stop testing for this. But don't maintain two different preferences with basically the same content. Instead add the '/git' suffix where needed and keep this all in one place. Simplify the extraction of the branch name from the cloud URL. Also a typo fix and a new comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/pref.c')
-rw-r--r--core/pref.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/pref.c b/core/pref.c
index bc1f7f3ea..61619c0d1 100644
--- a/core/pref.c
+++ b/core/pref.c
@@ -103,7 +103,6 @@ void copy_prefs(struct preferences *src, struct preferences *dest)
dest->default_filename = copy_string(src->default_filename);
dest->default_cylinder = copy_string(src->default_cylinder);
dest->cloud_base_url = copy_string(src->cloud_base_url);
- dest->cloud_git_url = copy_string(src->cloud_git_url);
dest->proxy_host = copy_string(src->proxy_host);
dest->proxy_user = copy_string(src->proxy_user);
dest->proxy_pass = copy_string(src->proxy_pass);