summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-08 12:28:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-08 12:29:17 -0700
commita1ec0d672493d1bb5e05042b1e0a05fce8ba42e4 (patch)
treec7d6b74b2ba519fced857c20bc8be4379257d6f6 /core/save-git.c
parente2e4bb6c2ac52c7df99d4284389fb490fcabe588 (diff)
downloadsubsurface-a1ec0d672493d1bb5e05042b1e0a05fce8ba42e4.tar.gz
git storage: only sync with remote if git_local_only isn't set
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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 1afb720fe..08161f3de 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -1225,7 +1225,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
if (create_new_commit(repo, remote, branch, &id))
return report_error("creating commit failed");
- if (remote && prefs.cloud_background_sync) {
+ if (remote && prefs.cloud_background_sync && !prefs.git_local_only) {
/* now sync the tree with the cloud server */
if (strstr(remote, prefs.cloud_git_url)) {
return sync_with_remote(repo, remote, branch, RT_HTTPS);