diff options
-rw-r--r-- | subsurface-core/git-access.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subsurface-core/git-access.c b/subsurface-core/git-access.c index 81952c89c..71491805c 100644 --- a/subsurface-core/git-access.c +++ b/subsurface-core/git-access.c @@ -680,7 +680,11 @@ static struct git_repository *get_remote_repo(const char *localdir, const char * } return update_local_repo(localdir, remote, branch, rt); } - return create_local_repo(localdir, remote, branch, rt); + if (!prefs.git_local_only) + return create_local_repo(localdir, remote, branch, rt); + else + return 0; + } /* |