Fixed git paths using system dependant separator instead of fixed "/"
This commit is contained in:
parent
2466dd7a33
commit
fc821ecb92
@ -20,10 +20,10 @@ val DiffEntry.parentDirectoryPath: String
|
|||||||
} else
|
} else
|
||||||
this.newPath
|
this.newPath
|
||||||
|
|
||||||
val pathSplit = path.split(systemSeparator).toMutableList()
|
val pathSplit = path.split("/").toMutableList()
|
||||||
pathSplit.removeLast()
|
pathSplit.removeLast()
|
||||||
|
|
||||||
val directoryPath = pathSplit.joinToString(systemSeparator)
|
val directoryPath = pathSplit.joinToString("/")
|
||||||
|
|
||||||
return if (directoryPath.isEmpty())
|
return if (directoryPath.isEmpty())
|
||||||
""
|
""
|
||||||
@ -38,7 +38,7 @@ val DiffEntry.fileName: String
|
|||||||
} else
|
} else
|
||||||
this.newPath
|
this.newPath
|
||||||
|
|
||||||
val pathSplit = path.split(systemSeparator)
|
val pathSplit = path.split("/")
|
||||||
|
|
||||||
return pathSplit.lastOrNull() ?: ""
|
return pathSplit.lastOrNull() ?: ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user