Skip to content

Commit 5a9938b

Browse files
authored
Merge pull request #2 from mikepflu/main
fix(prompt): Map subcommand stdin/stdout so we see pre-commit messages
2 parents 2264bb8 + 74c174e commit 5a9938b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ func main() {
265265

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

269271
// Run the command
270272
err = cmd.Run()

0 commit comments

Comments
 (0)