mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
fix: remove the .git directory in the template (#1929)
fixed: https://github.com/wailsapp/wails/issues/1928
This commit is contained in:
parent
6a3b89d212
commit
ef32ea2575
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue