Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369356

Summary: pressing amend in staging view gives wrong result
Product: [Technology] EGit Reporter: Markus Duft <markus.duft>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Markus Duft CLA 2012-01-23 02:35:59 EST
Build Identifier: 

I just pressed amend to amend my last commit in staging view, and it gave me a wrong commit. I have both egit and jgit repos in my workspace. Staging view's heading says 'egit' (which i wanted to commit), but the commit message it pre-fills is the HEAD commit og jgit ?! i think this is pretty dangerous, i don't know what would happen if i'd press commit, don't want to ruin my repos :)

Reproducible: Sometimes

Steps to Reproduce:
Don't know the exact steps. I was working on egit, previously fetched and rebased some in both repos. Egit was select (at least it says so), and i pressed amend.
Comment 1 Markus Duft CLA 2012-01-23 02:36:51 EST
ah - and thats in 1.3 nightly from last week 201201181724
Comment 2 Markus Duft CLA 2012-01-23 03:26:43 EST
grr... i just was able to reproduce it by just selecting one repo, then selecting the other and pressing amend after changing something. then i wanted to screen-record it, and now it works... *grmpf*
Comment 3 Robin Stocker CLA 2013-05-20 13:49:36 EDT
I use amend pretty heavily, but haven't seen this. Please reopen if you encounter this again.