public void init() throws GitException { if (hasGitRepo()) { throw new GitException(Messages.GitAPI_Repository_FailedInitTwiceMsg()); } try { setDelegate(Git.init().setDirectory(new File(workspace.getRemote())).call()); } catch (GitAPIException ex) { throw new GitException(ex); } }