Skip to content

Commit

Permalink
host key checking on clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper committed Oct 23, 2024
1 parent 2a893a1 commit e30d260
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/bailiff/repush.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func (s *ShellRepusher) Clone(ctx context.Context, repoURL string) error {
".",
)
cmd.Dir = s.workdir
cmd.Env = append(cmd.Env, "GIT_SSH_COMMAND='-o StrictHostKeyChecking=accept-new'")

doneC := make(chan struct{})
if err := s.logOutput(cmd, doneC); err != nil {
Expand Down

0 comments on commit e30d260

Please sign in to comment.