1
0
Jonathan Kelley 1 сар өмнө
parent
commit
bb0621fa1b

+ 2 - 0
packages/cli/src/cli/create.rs

@@ -72,12 +72,14 @@ impl Create {
             init: true,
             name: self.name,
             silent: self.yes,
+            vcs: Some(cargo_generate::Vcs::Git),
             template_path: TemplatePath {
                 auto_path: self.template,
                 branch: self.branch,
                 revision: self.revision,
                 subfolder: self.subtemplate,
                 tag: self.tag,
+
                 ..Default::default()
             },
             verbose: crate::logging::VERBOSITY

+ 1 - 0
packages/cli/src/cli/init.rs

@@ -64,6 +64,7 @@ impl Init {
             init: true,
             name: self.name,
             silent: self.yes,
+            vcs: Some(cargo_generate::Vcs::Git),
             template_path: TemplatePath {
                 auto_path: self.template,
                 branch: self.branch,