Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JGit checkout of directory
public void testCheckoutOfDirectoryShouldBeRecursive() throws Exception {
File a = writeTrashFile("dir/a.txt", "A");
File b = writeTrashFile("dir/sub/b.txt", "B");
write(a, "modified");
write(b, "modified");
assertThat(read(a), is("A"));
assertThat(read(b), is("B"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.