mirror of
https://github.com/grdl/git-get.git
synced 2026-02-07 19:54:19 +00:00
Fix issues found by mirror linter
This commit is contained in:
@@ -93,7 +93,7 @@ func readGitconfig(cfg Gitconfig) {
|
||||
|
||||
viper.SetConfigType("env")
|
||||
|
||||
if err := viper.ReadConfig(bytes.NewBuffer([]byte(strings.Join(lines, "\n")))); err != nil {
|
||||
if err := viper.ReadConfig(bytes.NewBufferString(strings.Join(lines, "\n"))); err != nil {
|
||||
// Log error but don't fail - configuration is optional
|
||||
fmt.Fprintf(os.Stderr, "Warning: failed to read git config: %v\n", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user