Skip to content

Commit

Permalink
fix(git): avoid error message to be swallowed
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Nov 27, 2023
1 parent 540c4d6 commit 25d4130
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func GetRoot(targetPath string) (string, error) {
func logAndBuildCommand(ctx context.Context, args ...string) *exec.Cmd {
log.Debug().Msgf("running command: git %s", strings.Join(args, " "))

cmd := exec.CommandContext(ctx, "git", args...)
cmd := exec.CommandContext(ctx, "git2ss", args...)
cmd.Env = environment

return cmd
Expand Down Expand Up @@ -91,7 +91,6 @@ func captureCommand(ctx context.Context, workingDir string, args []string, captu
}

if err := command.Start(); err != nil {
command.Cancel() //nolint:errcheck
return err
}

Expand Down

0 comments on commit 25d4130

Please sign in to comment.