]> source.dussan.org Git - jgit.git/commit
Fix ResetCommand to default to mixed reset 42/34742/3
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 13 Oct 2014 14:41:58 +0000 (16:41 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 13 Oct 2014 14:41:58 +0000 (16:41 +0200)
commit13ffda0666cec94183529307eecbbda3bcf12fb1
tree0064037bdcd44a2adc89907ed67f7d1612143275
parent74c337eadb76880e5c9a72c019272c32c4885221
Fix ResetCommand to default to mixed reset

ResetCommand threw an NPE if neither mode nor path was defined. Instead
it should default to a mixed reset like native git does.

Change-Id: I455902394f9e7b0c7afae42381f34838f7f2a138
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