summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 20:03:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-13 20:03:20 -0700
commit9ec155fad05d53aaac42c7a8b9460b7eb6a0c803 (patch)
tree7e2ebde52b52c7fd6b82383c7300683ebfa6ad19 /save-git.c
parent0c5ea57f1c69812fb85fac14ed4e380c3af03ca3 (diff)
downloadsubsurface-9ec155fad05d53aaac42c7a8b9460b7eb6a0c803.tar.gz
Cloud storage: clean up error propagation
We were falling of the end of a number of functions that were supposed to return 0 on success or an error. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index 4e1d34957..d4247c0d0 100644
--- a/save-git.c
+++ b/save-git.c
@@ -1142,9 +1142,10 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
if (prefs.cloud_background_sync) {
/* now sync the tree with the cloud server */
if (strstr(remote, "https://cloud.subsurface-divelog.org")) {
- sync_with_remote(repo, remote, branch, RT_HTTPS);
+ return sync_with_remote(repo, remote, branch, RT_HTTPS);
}
}
+ return 0;
}
int git_save_dives(struct git_repository *repo, const char *branch, const char *remote, bool select_only)