var exec = require('child_process').execFile
  , path = require('path')
  , gh = require('./git-hooked')
  , utils = require('./utils');

module.exports = function(hook) {
  hook = path.basename(hook);
  var targetHook = path.join(gh.root, gh.userHooks, hook);
  if(utils.fileExists(targetHook)) {
    exec(targetHook, { stdio: 'inherit' });
  }
};
@@ -333,16 +333,48 @@
 erit' %7D)
+%0A      .on('exit', process.exit)
 ;%0A  %7D%0A%7D;

exit on failure