denio7 / egit

Automatically exported from code.google.com/p/egit
0 stars 0 forks source link

egit vs git file locking issue #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Update code outside eclipse (via git pull)
2. Occasionally git will fail to update index file

What is the expected output? What do you see instead?
"git pull" should be able to update code correctly, but it fails 
occasionally. It looks like egit detects that the index file is changed and  
tries to read that file to update the UI. However, as "git pull" is still 
writing to the file while "egit" locks it, "git pull" fails to update its 
index and causes the index to be out-of-sync with the rest of the updated 
files.

What version of the product are you using? On what operating system?
0.5.0

Please provide any additional information below.

Original issue reported on code.google.com by nat.lu...@gmail.com on 3 Sep 2009 at 3:02

GoogleCodeExporter commented 8 years ago
Is this on Windows?

Original comment by robin.ro...@gmail.com on 3 Sep 2009 at 8:30

GoogleCodeExporter commented 8 years ago
yes it is... WinXP JDK 1.6.0_14 Eclipse 3.5

Original comment by nat.lu...@gmail.com on 3 Sep 2009 at 9:31

GoogleCodeExporter commented 8 years ago
AFAIK msysgit retries operations so this situation doesn't happen all the time. 
EGit
cannot really help here since we don't know how to tell git to "wait" until 
EGit are
done.

Original comment by robin.ro...@gmail.com on 4 Sep 2009 at 1:27

GoogleCodeExporter commented 8 years ago
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=300084

Original comment by robin.ro...@gmail.com on 20 Jan 2010 at 11:32