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>
This commit is contained in:
Dirk Hohndel 2015-06-12 12:32:12 -07:00
parent 492369b312
commit e21cae2d46
5 changed files with 41 additions and 22 deletions

2
file.c
View file

@ -425,7 +425,7 @@ int parse_file(const char *filename)
char *fmt;
int ret;
git = is_git_repository(filename, &branch);
git = is_git_repository(filename, &branch, NULL);
if (git && !git_load_dives(git, branch))
return 0;