Skip to content

Commit

Permalink
Merge pull request #781 from aryan9600/fix-enabled
Browse files Browse the repository at this point in the history
libgit2: fix managed transport enabled flag updation
  • Loading branch information
Paulo Gomes committed Jun 10, 2022
2 parents f6a389c + 590aa32 commit 7a797e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/git/libgit2/managed/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ func InitManagedTransport(log logr.Logger) error {
return
}

err = registerManagedSSH()
enabled = true
if err = registerManagedSSH(); err == nil {
enabled = true
}
})

return err
Expand Down

0 comments on commit 7a797e3

Please sign in to comment.