summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index 5ff67ddea..6496d28ad 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -904,7 +904,7 @@ static void save_divesites(git_repository *repo, struct dir *tree)
for (int i = 0; i < dive_site_table.nr; i++) {
struct membuffer b = { 0 };
struct dive_site *ds = get_dive_site(i);
- if (dive_site_is_empty(ds)) {
+ if (dive_site_is_empty(ds) || !is_dive_site_used(ds->uuid, false)) {
int j;
struct dive *d;
for_each_dive(j, d) {