/** * Updates this ref to the specified commit. * * @param sha * The SHA1 value to set this reference to */ public void updateTo(String sha) throws IOException { updateTo(sha, false); }
/** * Updates this ref to the specified commit. * * @param sha * The SHA1 value to set this reference to */ public void updateTo(String sha) throws IOException { updateTo(sha, false); }
/** * Updates this ref to the specified commit. * * @param sha * The SHA1 value to set this reference to */ public void updateTo(String sha) throws IOException { updateTo(sha, false); }
private void createSubmodule( TestGitHubRepository pathToRootContentDirectory, String pathForSubmodule) throws IOException { String submoduleSha = createTreeWithSubmodule(pathToRootContentDirectory, pathForSubmodule); GHCommit treeCommit = ghRepo.createCommit().tree(submoduleSha).message("Create submodule").create(); getReferenceToDefaultBranch().updateTo(treeCommit.getSHA1(), true); setupSubmoduleConfig(pathToRootContentDirectory, pathForSubmodule); }