allow remote forking of HTTP and HTTPS URLs
authorChristian Weiske <cweiske@cweiske.de>
Thu, 21 Nov 2013 06:21:47 +0000 (07:21 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 21 Nov 2013 06:21:47 +0000 (07:21 +0100)
src/phorkie/ForkRemote.php

index 7f6129d..8784e8e 100644 (file)
@@ -148,7 +148,9 @@ class ForkRemote
 
     public function isSupported($url)
     {
-        return parse_url($url, PHP_URL_SCHEME) == 'git';
+        $scheme = parse_url($url, PHP_URL_SCHEME);
+        return $scheme == 'git'
+            || $scheme == 'http' || $scheme == 'https';
     }
 }