mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-172253 git: support WSL git executable for project in WSL file system
GitOrigin-RevId: b35a187effb08ceeb9521c0f71de499216e55d67
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c41b29aba3
commit
28f7f30cf4
@@ -424,7 +424,7 @@ public class WSLDistribution {
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NotNull
|
||||
File getUNCRoot() {
|
||||
public File getUNCRoot() {
|
||||
return new File(UNC_PREFIX + myDescriptor.getMsId());
|
||||
}
|
||||
|
||||
|
||||
@@ -66,8 +66,9 @@ sealed class GitExecutable {
|
||||
}
|
||||
|
||||
override fun convertFilePathBack(path: String, workingDir: File): File {
|
||||
val localPath = distribution.getWindowsPath(path) ?: path
|
||||
return File(localPath)
|
||||
val localPath = distribution.getWindowsPath(path)
|
||||
if (localPath != null) return File(localPath)
|
||||
return File(distribution.uncRoot, path)
|
||||
}
|
||||
|
||||
override fun patchCommandLine(handler: GitHandler, commandLine: GeneralCommandLine, withLowPriority: Boolean, withNoTty: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user