atomist / sdm-local

Local software delivery machine support
Apache License 2.0
13 stars 4 forks source link

Git hooks not working on MS Windows #194

Closed ddgenome closed 6 years ago

ddgenome commented 6 years ago

The Git hook script gets invoked and called atomist git-hook ... but the atomist CLI then errors with the following message:

atomist: [ERROR] Failed to process Git hook: write EPIPE

Maybe stdout or stderr is getting closed before something is able to write to it. Perhaps we have an unhandled promise. Or perhaps because atomist is run in the background of the script, whatever is spun up on MS Windows to provide a Bash-like environment to Git hooks is torn down before the atomist script exits.

ddgenome commented 6 years ago

When I remove the & to cause the atomist CLI to run in the foreground, it completes successfully.