From 3ad517d87a63c287981e4f857ed826507cee041d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 13 Jun 2015 08:04:20 -0700 Subject: Cloud storage: check connectivity before trying to connect With a new repository we take a different path. Signed-off-by: Dirk Hohndel --- git-access.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-access.c b/git-access.c index 1c43a1386..c37360075 100644 --- a/git-access.c +++ b/git-access.c @@ -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); -- cgit v1.2.3-70-g09d2