]> source.dussan.org Git - jgit.git/commit
Ensure resetting on commit id 80/6080/2
authorDariusz Luksza <dariusz@luksza.org>
Wed, 23 May 2012 00:04:04 +0000 (02:04 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 23 May 2012 14:18:33 +0000 (16:18 +0200)
commit1bec1f2fae58649bf1d29d5d9e226545fa66f170
tree7b28428244d60cadc7d1fd2308a1ae3cc63b421b
parent3da4c6fc58b666d31eafaaec3f1337fc665cd14f
Ensure resetting on commit id

When reset command was called with tag name as parameter the resulting
HEAD was set to the tag's SHA-1 which is a bug. This patch ensures that
repository.resolve() call always returns commit id.

Change-Id: I219b898c620a75c497c8652dbf4735fd094c4d7c
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ResetCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java