]> source.dussan.org Git - jgit.git/commit
Make ApplyCommand create missing parent directories for new files 73/6673/3
authorMarkus Duft <markus.duft@salomon.at>
Mon, 9 Jul 2012 10:47:52 +0000 (12:47 +0200)
committerChris Aniszczyk <zx@twitter.com>
Mon, 16 Jul 2012 16:04:30 +0000 (09:04 -0700)
commit3c09e980cb7c60615d7fa89a257596ba5e949a5e
tree770af038f3f0d56da0b15d45860c9eaf28ea306d
parent0e285fbb8c3dd200d65a6fef59eb750c54764fb8
Make ApplyCommand create missing parent directories for new files

Otherwise applying will fail with a FileNotFoundException, because
File.createNewFile() fails with missing parents.

Contains change & according test.

Change-Id: I970522b549b8bb260ca6720da11f12c57ee8a492
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/A1_sub.patch [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ApplyCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ApplyCommand.java