Browse Source

Catch UnsupportedOperationException for older Windowses

Bug: 429947
Change-Id: I78d38b345726f62841db34f7091812a91bf21b4b
tags/v3.4.0.201405051725-m7
Robin Rosenberg 10 years ago
parent
commit
7e258e6468

+ 1
- 1
org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java View File

@@ -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