summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 12:32:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 13:56:23 -0700
commite21cae2d46db8148dc294c2dff08d9321274f815 (patch)
tree3c96b90a46cc43534bc332aa1157cdb62c8a5ec5 /save-xml.c
parent492369b3125b2c1c91f134c360110440b03d33b6 (diff)
downloadsubsurface-e21cae2d46db8148dc294c2dff08d9321274f815.tar.gz
Cloud storage: sync the remote after save
This change once again tests if the remote can be reached. Even with a fairly big data file and a medium speed internet connection the remote sync is fast enough to call it nearly instantaneous. Maybe a couple of seconds. We may need more checks / different heuristics / warnings if the sync didn't happen, etc. But for now this should allow more reasonable testing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/save-xml.c b/save-xml.c
index 6fd089f7c..fdcaccc94 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -637,12 +637,12 @@ int save_dives_logic(const char *filename, const bool select_only)
struct membuffer buf = { 0 };
FILE *f;
void *git;
- const char *branch;
+ const char *branch, *remote;
int error;
- git = is_git_repository(filename, &branch);
+ git = is_git_repository(filename, &branch, &remote);
if (git)
- return git_save_dives(git, branch, select_only);
+ return git_save_dives(git, branch, remote, select_only);
try_to_backup(filename);