Commit 6e2bb871 authored by liaozan's avatar liaozan 🏀

fix: git branch rename

parent e3ec6a5f
......@@ -36,7 +36,7 @@ public class ArchetypePreparer implements ApplicationRunner {
.setURI(ARCHETYPE_REPO_URL)
.setRemote("upstream")
.call();
CheckoutCommand checkoutCommand = git.checkout().setName("master").setCreateBranch(true);
CheckoutCommand checkoutCommand = git.checkout().setName("archetype").setCreateBranch(true);
Ref ref = checkoutCommand.call();
log.info("Success checkout archetype branch: {} of {}", ref.getName(), ARCHETYPE_REPO_URL);
MavenUtils.install(archetypeTemplateDirectory.getAbsolutePath());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment