diff options
Diffstat (limited to 'subsurface-core/git-access.c')
-rw-r--r-- | subsurface-core/git-access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurface-core/git-access.c b/subsurface-core/git-access.c index 79e52b5a4..81952c89c 100644 --- a/subsurface-core/git-access.c +++ b/subsurface-core/git-access.c @@ -462,6 +462,11 @@ int sync_with_remote(git_repository *repo, const char *remote, const char *branc char *proxy_string; git_config *conf; + if (prefs.git_local_only) { + if (verbose) + fprintf(stderr, "don't sync with remote - read from cache only\n"); + return 0; + } if (verbose) fprintf(stderr, "sync with remote %s[%s]\n", remote, branch); |