diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-14 21:01:13 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-14 21:01:13 -0700 |
commit | 781b2e35d42f69b414b22cc5e27d3911a15914d0 (patch) | |
tree | 6deeea00b8ad61fcaffa7ea4ae30455651971b1b /save-xml.c | |
parent | 27c36ec4cf41a94855b6259213841cdbdae8e928 (diff) | |
download | subsurface-781b2e35d42f69b414b22cc5e27d3911a15914d0.tar.gz |
Revert "If saving to a git repository fails, don't create oddly named XML file"
This reverts commit e70bbb637e1d
Linus' solution in commit 27c36ec4cf41 ("Improved handling of git syntax
names with no git repository") is much better and makes my hack
unnecessary.
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/save-xml.c b/save-xml.c index c83101c13..61a9300bb 100644 --- a/save-xml.c +++ b/save-xml.c @@ -606,12 +606,7 @@ int save_dives_logic(const char *filename, const bool select_only) git = is_git_repository(filename, &branch); if (git) return git_save_dives(git, branch, select_only); - /* if the syntax is for a git save but saving we didn't find a - * repository, throw error */ - if (strchr(filename, '[')) { - report_error("Save failed, invalid git repository %s", filename); - return -1; - } + try_to_backup(filename); save_dives_buffer(&buf, select_only); |