Community
Participate
Working Groups
If I share a project in Egit its representation in the Git repository working tree is not updated automatically. Screencast to follow soon.
Created attachment 281245 [details] Screenshot
The label of the repo does update. Probable cause: the view listens to the JGit IndexChangeEvent, while the label provider listens on EGit's own IndexDiffChangedEvent event. JGit is not aware of files having been moved; EGit OTOH reacts on ResourceChangedEvents. Possibly the solution could be as simple as also using IndexDiffChangedEvent in the view. Potential pitfall: that event is be triggered later. Remains to be seen whether that might cause other problems. (It shouldn't, but the whole repo view updating already uses a number of background jobs...)
Similar to remote tracking branches -> they are not updated if I fetch, manual refresh is necessary
(In reply to Lars Vogel from comment #3) > Similar to remote tracking branches -> they are not updated if I fetch, > manual refresh is necessary That would be something else, and I cannot reproduce.
(In reply to Thomas Wolf from comment #4) > (In reply to Lars Vogel from comment #3) > > Similar to remote tracking branches -> they are not updated if I fetch, > > manual refresh is necessary > > That would be something else, and I cannot reproduce. Maybe an older EGit version at the client. I check later once we cover remotes in our current Git training (planned for tomorrow). Unfortunately we do not have another "Thomas Wolf" in our recent Egit trainings who takes over the burden of enhancing EGit after the Git training. :-)
(In reply to Thomas Wolf from comment #2) > The label of the repo does update. Probable cause: the view listens to the > JGit IndexChangeEvent, while the label provider listens on EGit's own > IndexDiffChangedEvent event. JGit is not aware of files having been moved; > EGit OTOH reacts on ResourceChangedEvents. > > Possibly the solution could be as simple as also using IndexDiffChangedEvent > in the view. Potential pitfall: that event is be triggered later. Later is better than never. :-)
Had this again in yesterday customer training.
Still happens in Windows with latest EGit release.
Created attachment 288506 [details] Before I select Team -> Share
Created attachment 288507 [details] After I share As you can see the "Working Tree" is not updated.
Possibly related: bug 553064.