Skip to content

Commit 8e318dc

Browse files
authored
small cleanup after 7092 (#7096)
1 parent 3fb4d81 commit 8e318dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SourceControl/GitRepository.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,11 +1088,11 @@ private class GitFileSystemView: FileSystem {
10881088
switch entry.type {
10891089
case .symlink:
10901090
let path = try repository.readLink(hash: hash)
1091-
return try readFileContents(TSCAbsolutePath(validating: path))
1091+
return try readFileContents(AbsolutePath(validating: path))
10921092
case .blob:
10931093
return try self.repository.readBlob(hash: hash)
10941094
default:
1095-
fatalError()
1095+
throw InternalError("unsupported git entry type \(entry.type) at path \(path)")
10961096
}
10971097
}
10981098

0 commit comments

Comments
 (0)