diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java index 9e89791b8..8dc8276b3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java @@ -166,7 +166,9 @@ public class FileTreeIterator extends WorkingTreeIterator { public FileEntry(final File f, FS fs) { this.fs = fs; attributes = fs.getAttributes(f); - if (attributes.isDirectory()) { + if (attributes.isSymbolicLink()) + mode = FileMode.SYMLINK; + else if (attributes.isDirectory()) { if (new File(f, Constants.DOT_GIT).exists()) mode = FileMode.GITLINK; else