summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.c6
-rw-r--r--git-access.h2
2 files changed, 8 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;
diff --git a/git-access.h b/git-access.h
index c0ff93d40..e1b72d100 100644
--- a/git-access.h
+++ b/git-access.h
@@ -1,6 +1,8 @@
#ifndef GITACCESS_H
#define GITACCESS_H
+#include "git2.h"
+
#ifdef __cplusplus
extern "C" {
#else