git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle undefined local clone urls
[phorkie.git]
/
src
/
phorkie
/
Repository
/
Remote.php
diff --git
a/src/phorkie/Repository/Remote.php
b/src/phorkie/Repository/Remote.php
index 4f5034c52cf4b94404af63987e78e2c61b6be640..3bb153fec8de8ca1c904291c93f1111ffd44822b 100644
(file)
--- a/
src/phorkie/Repository/Remote.php
+++ b/
src/phorkie/Repository/Remote.php
@@
-13,6
+13,11
@@
class Repository_Remote
}
}
+ public function getName()
+ {
+ return $this->name;
+ }
+
public function getTitle()
{
if (isset($this->arConfig['title'])) {
public function getTitle()
{
if (isset($this->arConfig['title'])) {
@@
-38,10
+43,13
@@
class Repository_Remote
}
}
}
}
- return $this->arConfig['url'];
+ if (isset($this->arConfig['url'])) {
+ return $this->arConfig['url'];
+ }
+ return null;
}
}
- public function getWebURL()
+ public function getWebURL(
$full = false
)
{
if (isset($this->arConfig['homepage'])) {
return $this->arConfig['homepage'];
{
if (isset($this->arConfig['homepage'])) {
return $this->arConfig['homepage'];
@@
-50,7
+58,7
@@
class Repository_Remote
if ($this->isLocal()) {
$local = $this->getLocalRepository();
if ($local !== null) {
if ($this->isLocal()) {
$local = $this->getLocalRepository();
if ($local !== null) {
- return $local->getLink('display');
+ return $local->getLink('display'
, null, $full
);
}
}
}
}