git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow remote forking of HTTP and HTTPS URLs
[phorkie.git]
/
src
/
phorkie
/
ForkRemote.php
diff --git
a/src/phorkie/ForkRemote.php
b/src/phorkie/ForkRemote.php
index 7f6129d9a524cefe134e116a2ac6ffd4014b2dbf..8784e8e26562fe1debed0495e6d0420261559fb9 100644
(file)
--- a/
src/phorkie/ForkRemote.php
+++ b/
src/phorkie/ForkRemote.php
@@
-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';
}
}