Community
Participate
Working Groups
Created attachment 232701 [details] JUnit-Test that reproduces the bug If the repository contains a certain combination of folders, mainly one containing a space as first character, the AddCommand fails after moving one of the folders. Steps to reproduce: Create this directory-structure: ./ startsWithSpace ./ startsWithSpace/x ./ startsWithSpace/a ./ startsWithSpace/a/b ./ startsWithSpace/a/b/c.file initialize git, commit the whole structure move "./ startsWithSpace/a/b" to "./ startsWithSpace/x" call the add(.) This results in the following exception: org.eclipse.jgit.dircache.InvalidPathException: Invalid path: /startsWithSpace/x/b/c.file at org.eclipse.jgit.dircache.DirCacheEntry.<init>(DirCacheEntry.java:270) at org.eclipse.jgit.dircache.DirCacheEntry.<init>(DirCacheEntry.java:251) at org.eclipse.jgit.dircache.DirCacheEntry.<init>(DirCacheEntry.java:220) at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:170) Notice that the invalid path does not contain the space-character. For details, refer to the attached JUnit-Test which reproduces the bug. This bug was tested on releases 2.3.1.201302201838-r and 2.1.0.201209190230-r