File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -780,11 +780,11 @@ private class GitFileSystemView: FileSystem {
780
780
private func getEntry( _ path: AbsolutePath ) throws -> Tree . Entry ? {
781
781
// Walk the components resolving the tree (starting with a synthetic
782
782
// root entry).
783
- var current : Tree . Entry = Tree . Entry ( location: self . root, type: . tree, name: " / " )
783
+ var current : Tree . Entry = Tree . Entry ( location: self . root, type: . tree, name: AbsolutePath . root . pathString )
784
784
var currentPath = AbsolutePath . root
785
- for component in path. components. dropFirst ( 1 ) {
785
+ for component in path. components {
786
786
// Skip the root pseudo-component.
787
- if component == " / " { continue }
787
+ if component == AbsolutePath . root . pathString { continue }
788
788
789
789
currentPath = currentPath. appending ( component: component)
790
790
// We have a component to resolve, so the current entry must be a tree.
@@ -877,7 +877,7 @@ private class GitFileSystemView: FileSystem {
877
877
}
878
878
879
879
public var currentWorkingDirectory : AbsolutePath ? {
880
- return AbsolutePath ( " / " )
880
+ return AbsolutePath . root
881
881
}
882
882
883
883
func changeCurrentWorkingDirectory( to path: AbsolutePath ) throws {
You can’t perform that action at this time.
0 commit comments