summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 13:16:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 13:16:08 -0700
commit3d62f89bce967d43de0d6fb8ba5156371b4f293b (patch)
tree9c3d11996a03dc2815f641310f94267216e5f60e /file.c
parent7b7568b1ba536d37263dd8d2b395828ac0a2fd41 (diff)
downloadsubsurface-3d62f89bce967d43de0d6fb8ba5156371b4f293b.tar.gz
Cloud storage: Remove another git related message
Once we failed to load data from cloud storage (for example the first time we try to use it when the remote repository is empty), don't show git related errors to the user. It's enough to tell them that the cloud storage is empty. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.c b/file.c
index bbb396169..f3c697b0d 100644
--- a/file.c
+++ b/file.c
@@ -428,6 +428,12 @@ 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)
+ /* opening the cloud storage repository failed for some reason
+ * give up here and don't send errors about git repositories */
+ return 0;
+
if (git && !git_load_dives(git, branch))
return 0;