summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c
index a27dcfa76..ef7396bf9 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -601,8 +601,11 @@ void save_dives_logic(const char *filename, const bool select_only)
const char *branch;
git = is_git_repository(filename, &branch);
- if (git && !git_save_dives(git, branch, select_only))
+ if (git) {
+ /* error returns, anybody? */
+ git_save_dives(git, branch, select_only);
return;
+ }
try_to_backup(filename);