remoteGit = RepoUtil.createRepositoryWithBranches(newDir(), "own");
gfGit = Git.cloneRepository().setDirectory(workDir).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();
JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
JGitFlow flow = initCommand.setDirectory(gfGit.getRepository().getWorkTree()).setInitContext(ctx).call();
flow.git().checkout().setName(flow.getDevelopBranchName()).call();
assertEquals(flow.getDevelopBranchName(), flow.git().getRepository().getBranch());
File gitDir = gfGit.getRepository().getDirectory();
File gitConfig = new File(gitDir, "config");