Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369356 - pressing amend in staging view gives wrong result
Summary: pressing amend in staging view gives wrong result
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 02:35 EST by Markus Duft CLA
Modified: 2013-05-20 13:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.