mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-22 12:32:40 +00:00
init git config failure -> warn (#392)
* init git config failure -> warn Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
parent
8543f3adfa
commit
64306be2d6
1 changed files with 4 additions and 4 deletions
|
@ -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().Err(err).Msgf("Failed to change the host's git global config, ensure to add to `safe.directory` the path %s, and `receive.advertisePushOptions` is set to true.", homePath)
|
||||
}
|
||||
|
||||
if err := createSymlink(homePath, ctx.String("config")); err != nil {
|
||||
log.Fatal().Err(err).Msg("Failed to create symlinks")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue