You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \RuntimeException('Can not clone '.$this->url.' to access package information. The "'.dirname($this->repoDir).'" directory is not writable by the current user.');
75
-
}
81
+
/**
82
+
* Initialize the remote path.
83
+
*
84
+
* @param bool $skipSync Check if sync must be skipped
if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $this->url)) {
78
-
thrownew \InvalidArgumentException('The source URL '.$this->url.' is invalid, ssh URLs should have a port number after ":".'."\n".'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
thrownew \RuntimeException('Can not clone '.$this->url.' to access package information. The "'.dirname($this->repoDir).'" directory is not writable by the current user.');
88
99
}
89
100
90
-
$this->getTags();
91
-
$this->getBranches();
101
+
if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $this->url)) {
102
+
thrownew \InvalidArgumentException('The source URL '.$this->url.' is invalid, ssh URLs should have a port number after ":".'."\n".'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
0 commit comments