Update dependencies.

This commit is contained in:
Tadeas Kriz 2016-11-09 11:40:20 +01:00
parent ed32e76438
commit dd44ff208b
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4d928bc99cc075b9d6c0c4293ba472be4b7eed02
Subproject commit d91beae40e3ca830e32eb7177f096063b0d25702

@ -1 +1 @@
Subproject commit 5bc7cc9361546a611a32fff32238fe25fed16f09
Subproject commit 420b07a5711ef0e8a8837b82101e63d6861e4a17

View File

@ -32,10 +32,10 @@ public struct FileHeaderHandler {
private static func getRelativePath(from absolutePath: String) -> String {
let path = Path(absolutePath)
let base = path.commonAncestor(Path.Current)
let base = path.commonAncestor(Path.current)
let components = path.components.suffix(from: base.components.endIndex)
let result = components.map { $0.rawValue }.joined(separator: Path.separator)
let difference = Path.Current.components.endIndex - base.components.endIndex
let difference = Path.current.components.endIndex - base.components.endIndex
return (0..<difference).reduce(result) { acc, _ in ".." + Path.separator + acc }
}