Skip to content

Commit

Permalink
init git config failure -> warn
Browse files Browse the repository at this point in the history
Signed-off-by: phanirithvij <[email protected]>
  • Loading branch information
phanirithvij committed Nov 26, 2024
1 parent 8543f3a commit 01f7821
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ func Initialize(ctx *cli.Context) {
"Current git version: " + gitVersion)
}

if err := git.InitGitConfig(); err != nil {
log.Fatal().Err(err).Send()
}

homePath := config.GetHomeDir()
log.Info().Msg("Data directory: " + homePath)

if err := git.InitGitConfig(); err != nil {
log.Warn().Msg("Git config modification failed, ensure " + homePath + " is added to git safe directories, and receive.advertisePushOptions is set to true.")
}

if err := createSymlink(homePath, ctx.String("config")); err != nil {
log.Fatal().Err(err).Msg("Failed to create symlinks")
}
Expand Down

0 comments on commit 01f7821

Please sign in to comment.