]> source.dussan.org Git - jgit.git/commit
Make sure not to overwrite untracked not-ignored files 43/2343/2
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 12 Jan 2011 16:25:40 +0000 (17:25 +0100)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 26 Jan 2011 17:41:44 +0000 (11:41 -0600)
commit0d7dd6625a11a149d83e17f1d7defab9237aa6f6
tree64814ab0c2532379c469666b9fbaf5d2899ffa11
parent65680da3ee2e423dd400c4ffc4195c4cf98ab77b
Make sure not to overwrite untracked not-ignored files

When DirCacheCheckout was checking out it was silently
overwriting untracked files. This is only ok if the
files are also ignored. Untracked and not ignored files
should not be overwritten. This fix adds checks for
this situation.
Because this change in the behaviour also broke tests
which expected that a checkout will overwrite untracked
files (PullCommandTest) these tests have to be modified
also.

Bug: 333093
Change-Id: I26806d2108ceb64c51abaa877e11b584bf527fc9
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PullCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ReadTreeTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java