]> source.dussan.org Git - jgit.git/commit
Fix CheckoutCommand to return updated files even on NONDELETED status 98/81998/1
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 27 Sep 2016 13:38:53 +0000 (15:38 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Tue, 27 Sep 2016 13:58:24 +0000 (15:58 +0200)
commit83e43f7960de7e62dd1e7b2950ceed24ce85e8ac
treedfa9024397dcc9853971d9ba5908c5e61b833e39
parent8ed16fa1005405837cbb6f515333f89dbda876f5
Fix CheckoutCommand to return updated files even on NONDELETED status

CheckoutCommand was not returning updated and removed files in case of
an overall status of NONDELETED. That's status which occurs especially
on the Windows platform when Checkout wanted to delete files but the
filesystem doesn't allow this. The situation is more seldom on linux/mac
because open filehandles don't stop a deletion attempt and checkout
succeeds more often.

Change-Id: I4828008e58c09bd8f9edaf0f7eda0a79c629fb57
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutResult.java