Bug 576959 - Comparing branches in "Git Repositories" view compares old commit instead of current
Summary: Comparing branches in "Git Repositories" view compares old commit instead of ...
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 5.13   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 6.0   Edit
Assignee: Thomas Wolf CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 09:52 EDT by Robert Boehmer CLA
Modified: 2021-10-30 16:40 EDT (History)
1 user (show)

See Also:


Attachments
Shows different views with commit-SHA (164.16 KB, image/png)
2021-10-29 09:52 EDT, Robert Boehmer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Boehmer CLA 2021-10-29 09:52:36 EDT
Created attachment 287400 [details]
Shows different views with commit-SHA

How to reproduce:
1) create a text file and commit in branch A
2) switch to different branch B
3) create file with same name and commit in branch B
4) open "Git Repositories" view, select branches A and B and trigger "Compare with Each Other"

Result: 
1) The text file exists only in A, not in B
2) The Text Compare pane shows the correct commit SHA for A, but the previous commit SHA for B.
Comment 1 Thomas Wolf CLA 2021-10-29 16:38:12 EDT
Can reproduce. I'll take a look.
Comment 2 Eclipse Genie CLA 2021-10-29 18:57:12 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/187185