Skip to content

Commit

Permalink
Merge pull request #2 from mikepflu/main
Browse files Browse the repository at this point in the history
fix(prompt): Map subcommand stdin/stdout so we see pre-commit messages
  • Loading branch information
45413 authored May 1, 2024
2 parents 2264bb8 + 74c174e commit 5a9938b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ func main() {

// run git commit passing commit message, this ensures pre-commit hooks are run
cmd := exec.Command("git", "commit", "-F", f.Name())
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

// Run the command
err = cmd.Run()
Expand Down

0 comments on commit 5a9938b

Please sign in to comment.