mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cloud storage: check connectivity before trying to connect
With a new repository we take a different path. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9a22efb97b
commit
3ad517d87a
1 changed files with 2 additions and 0 deletions
|
@ -289,6 +289,8 @@ static git_repository *create_local_repo(const char *localdir, const char *remot
|
|||
opts.fetch_opts.callbacks.credentials = credential_https_cb;
|
||||
#endif
|
||||
opts.checkout_branch = branch;
|
||||
if (rt == RT_HTTPS && !canReachCloudServer())
|
||||
return 0;
|
||||
error = git_clone(&cloned_repo, remote, localdir, &opts);
|
||||
if (error) {
|
||||
report_error("git clone of %s failed (%s)", remote, giterr_last()->message);
|
||||
|
|
Loading…
Reference in a new issue