Fix no configured user

master v1.2
bel 2019-12-01 13:25:49 -07:00
parent 4e2b7b3c85
commit 081d50328f
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ type Versions struct {
func New() (*Versions, error) { func New() (*Versions, error) {
v := &Versions{} v := &Versions{}
v.cmd("git", "init") v.cmd("git", "init")
v.cmd("git", "config", "user.email", "user@user.user")
v.cmd("git", "config", "user.name", "user")
return v, nil return v, nil
} }