Skip to content

Commit 482890b

Browse files
committed
revert unnecessary changes
1 parent 1006b3c commit 482890b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Sources/Get/Error.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public enum Error: ErrorProtocol {
2121
case UpdateRequired(ClonePath)
2222
case Unversioned(ClonePath)
2323
case InvalidDependencyGraphMissingTag(package: String, requestedTag: String, existingTags: String)
24-
case ObsoleteGitVersion
2524
}
2625

2726
extension Error: CustomStringConvertible {
@@ -39,8 +38,6 @@ extension Error: CustomStringConvertible {
3938
return "No version tag found in (\(package)) package. Add a version tag with \"git tag\" command. Example: \"git tag 0.1.0\""
4039
case NoManifest(let clonePath, let version):
4140
return "The package at `\(clonePath)' has no Package.swift for the specific version: \(version)"
42-
case ObsoleteGitVersion:
43-
return "Git 2.0 or higher is required. Please update git and retry."
4441
}
4542
}
4643
}

Sources/Get/get().swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ import Utility
1818
- Returns: The modules that this manifest requires building
1919
*/
2020
public func get(manifest: Manifest, manifestParser: (path: String, url: String) throws -> Manifest) throws -> [Package] {
21-
// Git 2.0 or higher is required
22-
if Git.majorVersionNumber < 2 {
23-
throw Error.ObsoleteGitVersion
24-
}
25-
2621
let dir = Path.join(manifest.path.parentDirectory, "Packages")
2722
let box = PackagesDirectory(prefix: dir, manifestParser: manifestParser)
2823

0 commit comments

Comments
 (0)