Browse Source

Catch UnsupportedOperationException for older Windowses

Bug: 429947
Change-Id: I78d38b345726f62841db34f7091812a91bf21b4b
stable-3.4
Robin Rosenberg 11 years ago
parent
commit
7e258e6468
  1. 2
      org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java

2
org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java

@ -80,7 +80,7 @@ public class FS_Win32_Java7 extends FS_Win32 {
FileUtil.createSymLink(linkName, tempFile.getPath());
supportSymlinks = Boolean.TRUE;
linkName.delete();
} catch (IOException e) {
} catch (IOException | UnsupportedOperationException e) {
supportSymlinks = Boolean.FALSE;
} finally {
if (tempFile != null)

Loading…
Cancel
Save