mirror of
https://github.com/wavetermdev/wails.git
synced 2026-04-22 15:26:15 -07:00
fix: remove the .git directory in the template (#1929)
fixed: https://github.com/wailsapp/wails/issues/1928
This commit is contained in:
@@ -189,6 +189,12 @@ func initProject(options *templates.Options, quiet bool, ciMode bool) error {
|
||||
updateReplaceLine(workspace)
|
||||
}
|
||||
|
||||
// Remove the `.git`` directory in the template project
|
||||
err = os.RemoveAll(".git")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if options.InitGit {
|
||||
err = initGit(options)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user