From 9cf9a6d356f4d4d3dd68cd83cdb48640242d1f0f Mon Sep 17 00:00:00 2001 From: Jan Pecha Date: Mon, 13 Mar 2017 12:27:30 +0100 Subject: [PATCH] GitRepository: isRemoteUrlReadable() - improved detection See https://github.com/czproject/git-php/issues/7#issuecomment-284880748 --- src/GitRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GitRepository.php b/src/GitRepository.php index 9f9ee41..07a31dc 100644 --- a/src/GitRepository.php +++ b/src/GitRepository.php @@ -716,6 +716,7 @@ public static function isRemoteUrlReadable($url, array $refs = NULL) 'GIT_TERMINAL_PROMPT=0 git ls-remote', '--heads', '--quiet', + '--exit-code', $url, $refs, )) . ' 2>&1', $output, $returnCode);