Skip to content

Commit

Permalink
Ignore no git user.email if we're skipping git (#281)
Browse files Browse the repository at this point in the history
* Ignore no git user.email if we're skipping git
  • Loading branch information
reavessm authored Jul 24, 2024
1 parent fa8fb47 commit 539428d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/program/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ func (p *Project) CreateMainFile() error {
if err != nil {
cobra.CheckErr(err)
}
if !emailSet {

if !emailSet && p.GitOptions.String() != flags.Skip {
fmt.Println("user.email is not set in git config.")
fmt.Println("Please set up git config before trying again.")
panic("\nGIT CONFIG ISSUE: user.email is not set in git config.\n")
Expand Down

0 comments on commit 539428d

Please sign in to comment.