Skip to content

Commit

Permalink
.github folder is not deleted after cloning a repo #539
Browse files Browse the repository at this point in the history
  • Loading branch information
pmi committed May 3, 2024
1 parent 0d358bb commit 33d0e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/commands/project/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var Create = cli.Command{
Usage: "Application name.",
},
cli.StringFlag{
Name: "sandbox, sb, s",
Name: "sandbox, sb, s",
Usage: "Sandbox name",
},
cli.BoolFlag{
Expand Down Expand Up @@ -608,6 +608,7 @@ func isRemoteBranchExist(repo *git.Repository, branch string) (bool, error) {

func clearGitData(dest string) {
os.RemoveAll(filepath.Join(dest, ".git"))
os.RemoveAll(filepath.Join(dest, ".github"))
}

type StarterVersion struct {
Expand Down

0 comments on commit 33d0e22

Please sign in to comment.