BranchOperation: fix checkout for tags and remote branches
commite24ab3ac9be848ea128504faad170076e244d100
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 11 May 2010 13:44:59 +0000 (11 15:44 +0200)
committerMathias Kinzler <mathias.kinzler@sap.com>
Tue, 11 May 2010 13:44:59 +0000 (11 15:44 +0200)
tree2791b2819cd47e5b38ed24d5df7ca4c827c5dcf6
parentc4f9269f4c6e9a14e2150975afc71e3dd37a0b3e
BranchOperation: fix checkout for tags and remote branches

The current implementation wrongly changes the HEAD
ref to point to the remote branch instead of to the underlying
commit. Support for tags is not working at all.
This fixes both issues.

Bug: 312053

Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/op/BranchOperation.java