]> source.dussan.org Git - jgit.git/commit
Fix "reset -hard" bug that folders could not be deleted 69/127969/9
authorRené Scheibe <rene.scheibe@gmail.com>
Sat, 4 Aug 2018 11:19:17 +0000 (13:19 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 19 Jun 2019 09:52:02 +0000 (11:52 +0200)
commit8f9697b4c182be6f4ec3eeda130bd57237f154c7
tree985d63ce69b7aa909bd7fbb78811117a598b76e8
parentb4edf9ec142cd8d728800625926e12a7cecfa52e
Fix "reset -hard" bug that folders could not be deleted

The deleted code is not required as removed files are deleted correctly in
doCheckout() anyway.

The deleted code failed in case a non-empty directory had to be deleted.
file.delete() returned false, triggering an exception.

Bug: 479266
Change-Id: I011bb3882ff0c35b238aa3eccad7889041210277
Signed-off-by: René Scheibe <rene.scheibe@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ResetCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java