]> source.dussan.org Git - jgit.git/commit
Fix ResetCommand to return the resulting ref 93/59093/2
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 28 Oct 2015 09:36:27 +0000 (10:36 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 20 Jan 2016 10:27:31 +0000 (11:27 +0100)
commit7182cb2a2632b947a100ea817d5ffbb10ef479b6
tree937dbaa57e874a1afcbcbd8a7b1547cbd72cd753
parentda43d8d79890e561a993a4d90e6a2724a04cd60f
Fix ResetCommand to return the resulting ref

ResetCommand was not returning the updated ref as a result of the call()
method. Since the ResetCommand is always updating the same ref (HEAD)
this should always be the HEAD ref.

Bug: 440750
Change-Id: I7974975c3ab05e68c208384e69cf0692ded6e8db
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