Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Problem on cloning EGit

Ferry Huberts <ferry.huberts@xxxxxxxxxx> wrote:
> > "Baumgart, Jens" <jens.baumgart@xxxxxxx> wrote:
> >> warning: unable to unlink c:/Git/egit/parallelip-egit/.git/objects/a4/18d9d8adff
> >> dafd9e5c6c71a3bea79ff755e179.temp: Permission denied
> 
> at work we see the unlink failure quite often:
> we you have eclipse open with the egit plugin, and then
> do something with the repository (like gc) you almost
> always get this unlink error. I guess either the egit
> plugin or windows (my money's on this one) keeps files locked.

Its windows.  :-)
 
> maybe you can shed some light on this shawn?
> does the plugin keep tabs on repo files?

The plugin holds file descriptors open on recently accessed
pack-*.pack files, but otherwise is quite good at opening and
immediately closing any file it reads.

The plugin has a background thread which scans the repository state
periodically, so the resource annotations and such are current.
This scan opens $GIT_DIR/index for reading, and might also trigger
opening a blob if the index entry was racily clean.  Windows doesn't
allow a file to be deleted while its open for reading by another
program, so this can conflict with the command line tools.

-- 
Shawn.


Back to the top