I am looking for a way to git-commit wait for standard input. I code this in PHP since my bash skills do not exist, so I do the usual
<?php $input = trim(fgets(STDIN)); fscanf(STDIN, "%d\n", $line); ?>
would do the trick, and wait for me to write the material to continue, but it just continues and continues to execute my PHP script anyway.
The idea is that after I flag the release, git will push HEAD to the test web server, send a couple of tweets and let me write some details about the release in CHANGELOG.
While I can write to the file (using exec('mate -w') ), I would like it to hang until I run a quick test on the server. This will allow me to roll back if I notice any errors (lazy, I know).
Thanks for any help!
git php stdin hook
Roberto Jul 01 '09 at 8:08 2009-07-01 08:08
source share