diff options
author | Robin Stocker <robin@nibor.org> | 2014-10-23 06:50:00 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2014-10-23 06:50:00 -0400 |
commit | 6eca51923f49026d6e91052bc959472732332560 (patch) | |
tree | 8ef9a810c939eda502c88547761a7c8d27bd0152 /org.eclipse.jgit | |
parent | 2c25a1fde015facc51ab999aedccd59d574fff29 (diff) | |
parent | 4ea8c655d62e02544c06b4a8ea61929a84fb1c79 (diff) | |
download | jgit-6eca51923f49026d6e91052bc959472732332560.tar.gz jgit-6eca51923f49026d6e91052bc959472732332560.zip |
Merge "Initialize 'pathLen' field also for empty directories"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java index 9eb4285557..3d63d92542 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java @@ -668,6 +668,8 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator { ptr = 0; if (!eof()) parseEntry(); + else if (pathLen == 0) // see bug 445363 + pathLen = pathOffset; } /** |