瀏覽代碼

Merge "Do not resolve path using cygwin unless told to"

tags/v1.2.0.201112221803-r
Shawn Pearce 12 年之前
父節點
當前提交
00235c77d6
共有 1 個檔案被更改,包括 8 行新增5 行删除
  1. 8
    5
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32_Cygwin.java

+ 8
- 5
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32_Cygwin.java 查看文件

@@ -81,11 +81,14 @@ class FS_Win32_Cygwin extends FS_Win32 {
}

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


Loading…
取消
儲存