summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 07:11:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 07:11:55 -0700
commit9e5e12b5e4d85c1462cd75e3f004196055a0a8d2 (patch)
tree7ec8156898cf538357db24c8e2e275beb46ada6b /git-access.c
parent3478943f2ff5fae36d59667ffed33b9494d22acd (diff)
downloadsubsurface-9e5e12b5e4d85c1462cd75e3f004196055a0a8d2.tar.gz
Cloud storage: provide more information in debug builds
It makes sense to hide git URLs from the end user in release builds, but while developing and testing it's better to get more detailed information. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-access.c b/git-access.c
index 062152b0a..fd9f38548 100644
--- a/git-access.c
+++ b/git-access.c
@@ -382,8 +382,10 @@ static git_repository *create_local_repo(const char *localdir, const char *remot
* to our cloud storage and the branch doesn't exist.
* So we need to create the branch and push it to the remote */
cloned_repo = create_and_push_remote(localdir, remote, branch);
+#if !defined(DEBUG)
} else if (strstr(remote, prefs.cloud_git_url)) {
report_error(translate("gettextFromC", "Error connecting to Subsurface cloud storage"));
+#endif
} else {
report_error(translate("gettextFromC", "git clone of %s failed (%s)"), remote, msg);
}