Skip to content

Commit

Permalink
Merge pull request #38 from opentofu/no-prompt-credentials
Browse files Browse the repository at this point in the history
Don't prompt for credentials
  • Loading branch information
Yantrio authored Oct 9, 2024
2 parents b80b906 + a30c2d2 commit a0be829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcs/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func (g github) git(ctx context.Context, dir string, stdout io.Writer, params ..
cmd.Stdout = stdout
cmd.Stderr = logger.NewWriter(ctx, g.config.Logger, logger.LevelDebug, commandString+": ")
cmd.Dir = dir
cmd.Env = []string{"GIT_TERMINAL_PROMPT=1"}
cmd.Env = []string{"GIT_TERMINAL_PROMPT=0"}
done := make(chan struct{})
if err := cmd.Start(); err != nil {
return fmt.Errorf("failed to run %s (%w)", commandString, err)
Expand Down

0 comments on commit a0be829

Please sign in to comment.