Skip to content

Commit 30bf5e2

Browse files
authored
Restore RepositorySpecifier.Location.gitURL (#6725)
1 parent b31c19a commit 30bf5e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SourceControl/GitRepository.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public struct GitRepositoryProvider: RepositoryProvider, Cancellable {
192192

193193
try self.clone(
194194
repository,
195-
repository.location.SourceControlURL,
195+
repository.location.gitURL,
196196
path.pathString,
197197
["--mirror"],
198198
progress: progressHandler
@@ -256,7 +256,7 @@ public struct GitRepositoryProvider: RepositoryProvider, Cancellable {
256256
// In destination repo remove the remote which will be pointing to the source repo.
257257
let clone = GitRepository(git: self.git, path: destinationPath)
258258
// Set the original remote to the new clone.
259-
try clone.setURL(remote: origin, url: repository.location.SourceControlURL)
259+
try clone.setURL(remote: origin, url: repository.location.gitURL)
260260
// FIXME: This is unfortunate that we have to fetch to update remote's data.
261261
try clone.fetch()
262262
} else {
@@ -1382,7 +1382,7 @@ private func gitFetchStatusFilter(_ bytes: [UInt8], progress: FetchProgress.Hand
13821382
}
13831383

13841384
extension RepositorySpecifier.Location {
1385-
fileprivate var SourceControlURL: String {
1385+
fileprivate var gitURL: String {
13861386
switch self {
13871387
case .path(let path):
13881388
return path.pathString

0 commit comments

Comments
 (0)