mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
git storage: only sync with remote if git_local_only isn't set
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e2e4bb6c2a
commit
a1ec0d6724
2 changed files with 4 additions and 2 deletions
|
@ -602,7 +602,9 @@ static git_repository *update_local_repo(const char *localdir, const char *remot
|
|||
report_error("Unable to open git cache repository at %s: %s", localdir, giterr_last()->message);
|
||||
return NULL;
|
||||
}
|
||||
sync_with_remote(repo, remote, branch, rt);
|
||||
if (!prefs.git_local_only)
|
||||
sync_with_remote(repo, remote, branch, rt);
|
||||
|
||||
return repo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue