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
{{ message }}
Repository navigation
Commit 39d76b9
Browse filesBrowse the repository at this point in the historyBrowse files
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%s()" method is deprecated, use "%s::isValidRepository()" instead.', __METHOD__, Repository::class);
74
76
77
+
if (null !== RemoteUrl::unsafeReason((string) $url)) {
78
+
returnfalse;
79
+
}
80
+
75
81
// Unlike Repository::isValidRepository(), in the working directory of PHP, where a relative path may name a remote.
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%s()" method is deprecated, use "%s::isValidRepositoryAndBranch()" instead.', __METHOD__, Repository::class);
102
108
109
+
if (null !== RemoteUrl::unsafeReason((string) $url)) {
110
+
returnfalse;
111
+
}
112
+
103
113
// Unlike Repository::isValidRepositoryAndBranch(), "release" matches "feature/release", and "rel" "release",
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%s()" method is deprecated, use "%s::%s()" instead, which takes the URL before the path.', __METHOD__, Repository::class, $bare ? 'cloneBareFrom' : 'cloneFrom');
128
138
@@ -144,7 +154,7 @@ public static function cloneTo($path, $url, $bare = true, array $options = [])
144
154
*
145
155
* @deprecated since gitonomy/gitlib 1.7, use Repository::cloneBareFrom() or Repository::cloneFrom() with their "branch" argument instead
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%s()" method is deprecated, use "%s::%s()" with its "branch" argument instead, which takes the URL before the path.', __METHOD__, Repository::class, $bare ? 'cloneBareFrom' : 'cloneFrom');
150
160
@@ -167,7 +177,7 @@ public static function cloneBranchTo($path, $url, $branch, $bare = true, $option
167
177
*
168
178
* @deprecated since gitonomy/gitlib 1.7, use Repository::mirrorFrom() instead
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%s()" method is deprecated, use "%s::mirrorFrom()" instead, which takes the URL before the path.', __METHOD__, Repository::class);
173
183
@@ -186,7 +196,7 @@ public static function mirrorTo($path, $url, array $options = [])
186
196
*
187
197
* @deprecated since gitonomy/gitlib 1.7, use Repository::cloneFrom(), Repository::cloneBareFrom() or Repository::mirrorFrom() instead
trigger_deprecation('gitonomy/gitlib', '1.7', 'The "%1$s()" method is deprecated, use "%2$s::cloneFrom()", "%2$s::cloneBareFrom()" or "%2$s::mirrorFrom()" instead, which take the URL before the path; they support no other argument of "git clone".', __METHOD__, Repository::class);
192
202
@@ -195,7 +205,7 @@ public static function cloneRepository($path, $url, array $args = [], array $opt
0 commit comments