class GitWorkflowRepository extends FileBasedWorkflowRepository implements WorkflowRepository, FileBasedWorkflowRepositoryMXBean {

    public synchronized void setGitRepositoryDir(File gitRepositoryDir) throws IOException, GitAPIException {
        if (isUp()) {
            deleteGitRepositoryDir();
        }
        this.gitRepositoryDir = gitRepositoryDir;
        if (isUp()) {
            updateLocalGitRepositories();
        }
    }

}