Skip to content

Commit

Permalink
fix: remove the .git directory in the template (#1929)
Browse files Browse the repository at this point in the history
fixed: #1928
  • Loading branch information
misitebao committed Oct 2, 2022
1 parent 6a3b89d commit ef32ea2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v2/cmd/wails/internal/commands/initialise/initialise.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ef32ea2

Please sign in to comment.