Skip to content

Commit

Permalink
Log an error of getting user config
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Apr 11, 2019
1 parent a23fb9a commit 65c5200
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ func (gf globalFlags) WorkingEnvSpec() types.WorkingEnvSpec {
GhostRepo: gf.ghostRepo,
}
userName, userEmail, err := git.GetUserConfig(globalOpts.srcDir)
if err == nil {
workingEnvSpec.GhostUserName = userName
workingEnvSpec.GhostUserEmail = userEmail
if err != nil {
log.Debug("failed to get user name and email of the source directory")
}
workingEnvSpec.GhostUserName = userName
workingEnvSpec.GhostUserEmail = userEmail
return workingEnvSpec
}

Expand Down

0 comments on commit 65c5200

Please sign in to comment.