mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't connect to remote if git_local_only is set
If there was no local cache we still tried to connect to the remote, even with git_local_only set. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
afb57bf741
commit
9367613a77
1 changed files with 5 additions and 1 deletions
|
@ -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 update_local_repo(localdir, remote, branch, rt);
|
||||||
}
|
}
|
||||||
|
if (!prefs.git_local_only)
|
||||||
return create_local_repo(localdir, remote, branch, rt);
|
return create_local_repo(localdir, remote, branch, rt);
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue