|
|
@ -81,11 +81,14 @@ class FS_Win32_Cygwin extends FS_Win32 { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public File resolve(final File dir, final String pn) { |
|
|
|
public File resolve(final File dir, final String pn) { |
|
|
|
String w = readPipe(dir, //
|
|
|
|
String useCygPath = System.getProperty("jgit.usecygpath"); |
|
|
|
new String[] { cygpath, "--windows", "--absolute", pn }, //
|
|
|
|
if (useCygPath != null && useCygPath.equals("true")) { |
|
|
|
"UTF-8"); |
|
|
|
String w = readPipe(dir, //
|
|
|
|
if (w != null) |
|
|
|
new String[] { cygpath, "--windows", "--absolute", pn }, //
|
|
|
|
return new File(w); |
|
|
|
"UTF-8"); |
|
|
|
|
|
|
|
if (w != null) |
|
|
|
|
|
|
|
return new File(w); |
|
|
|
|
|
|
|
} |
|
|
|
return super.resolve(dir, pn); |
|
|
|
return super.resolve(dir, pn); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|