diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-13 13:16:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-13 13:16:08 -0700 |
commit | 3d62f89bce967d43de0d6fb8ba5156371b4f293b (patch) | |
tree | 9c3d11996a03dc2815f641310f94267216e5f60e /file.c | |
parent | 7b7568b1ba536d37263dd8d2b395828ac0a2fd41 (diff) | |
download | subsurface-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |