summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 22:54:39 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 22:54:39 -0800
commitae49a8a4f7c277644a62b096585ee467f3cad5c7 (patch)
tree09605a835cdb655b7e5b125c6b8a887128ad9da1 /save-git.c
parentb2f0d21d43fb42918041e492cd5cb18253505960 (diff)
downloadsubsurface-ae49a8a4f7c277644a62b096585ee467f3cad5c7.tar.gz
Get location from dive site for git commit message
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index 764805d03..2069b4c29 100644
--- a/save-git.c
+++ b/save-git.c
@@ -960,7 +960,7 @@ static void create_commit_message(struct membuffer *msg)
if (dive) {
dive_trip_t *trip = dive->divetrip;
- const char *location = dive->location ? : "no location";
+ const char *location = get_dive_location(dive) ? : "no location";
struct divecomputer *dc = &dive->dc;
const char *sep = "\n";