public static Git createNewLocalRepository(ProductInstance product, String key) throws IOException, NoFilepatternException, NoHeadException, NoMessageException, ConcurrentRefUpdateException, WrongRepositoryStateException, InvalidRemoteException, URISyntaxException
{
File pluginJar = buildSimpleExtensionFile("gitTest");
File dir = getTempDir(key);
new FileUnzipper(pluginJar, dir).unzip();
Git git = Git.init()
.setDirectory(dir)
.setBare(false)
.call();