@Test
public void branchChangedFiles_when_git_work_tree_is_above_project_basedir() throws IOException, GitAPIException {

  git.branchCreate().setName("b1").call();
  git.checkout().setName("b1").call();
  Path projectDir = worktree.resolve("project");
  Files.createDirectory(projectDir);
  createAndCommitFile("project/file-b1");
  assertThat(newScmProvider().branchChangedFiles("master", projectDir))
    .containsOnly(projectDir.resolve("file-b1"));
}