Skip to content

Commit

Permalink
remove .git after clone
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Jan 24, 2018
1 parent 64b2f9b commit 3f153f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func (t *Templating) cloneRepo(repoURL string, dest string) error {
return fmt.Errorf("respository already exists. Remove '%s' directory", dest)
}

os.RemoveAll(filepath.Join(dest, ".git"))

return err
}

Expand Down

0 comments on commit 3f153f3

Please sign in to comment.