Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] IllegalStateException in DirCacheBuilder

On Mon, May 23, 2011 at 00:58, Akos Tajti <akos.tajti@xxxxxxxxx> wrote:
> I got the following exception during checkout:
> java.lang.IllegalStateException: Duplicate stages not allowed: 0 н¨ WinRAR
> ѹËõÎļþ.rar
> Could you please tell me what situations can cause this exception?

Somehow there are two DirCacheEntry records in the DirCache for the
same file path, and the same stage number. This should never occur and
is a programming error in whatever code write the $GIT_DIR/index to
disk like that, or created it that way in memory.

I'm pretty sure *nobody* writes it to disk like this, and the
exception came out of JGit after it tried to write the index out like
this. So you would need to back track and find what code modified the
DirCache in memory, and start looking there for the culprit. Its
possible there is a bug somewhere in JGit's DirCache related code that
tries to create a DirCache with this duplicate stage 0.


Back to the top