diff options
Diffstat (limited to 'save-git.c')
-rw-r--r-- | save-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c index 6e44b0851..64e04823b 100644 --- a/save-git.c +++ b/save-git.c @@ -1139,7 +1139,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo if (create_new_commit(repo, branch, &id)) return report_error("creating commit failed"); - if (prefs.cloud_background_sync) { + if (remote && prefs.cloud_background_sync) { /* now sync the tree with the cloud server */ if (strstr(remote, prefs.cloud_git_url)) { return sync_with_remote(repo, remote, branch, RT_HTTPS); |