]> source.dussan.org Git - jgit.git/commitdiff
Catch UnsupportedOperationException for older Windowses 91/23091/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 9 Mar 2014 11:09:19 +0000 (12:09 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 9 Mar 2014 11:09:42 +0000 (12:09 +0100)
Bug: 429947
Change-Id: I78d38b345726f62841db34f7091812a91bf21b4b

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

index 4a9d5f0bb7bbe3d3f68955e44beadf87bb9dd381..071186725c26f1e99d7a1ce761b971fbb030f066 100644 (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)