Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update for node v0.8.x

  • Loading branch information...
commit c59ba29b579e762774000917ea403ada394d18c7 1 parent 9d28668
@creationix authored
Showing with 7 additions and 3 deletions.
  1. +5 −1 lib/wheat/renderers.js
  2. +2 −2 package.json
View
6 lib/wheat/renderers.js
@@ -22,8 +22,12 @@ function execPipe(command, args, data, callback) {
child.on('error', function onExit(err) {
callback(err);
});
+ var exitCode;
child.on('exit', function onExit(code) {
- if (code > 0) {
+ exitCode = code;
+ });
+ child.on('close', function () {
+ if (exitCode > 0) {
callback(new Error(stderr.join("")));
} else {
var buffer = new Buffer(size);
View
4 package.json
@@ -2,7 +2,7 @@
"name": "wheat",
"description": "Git powered javascript blog.",
"tags": ["git","node","howtonode","blog"],
- "version": "0.2.5",
+ "version": "0.2.6",
"author": "Tim Caswell <tim@creationix.com>",
"repository": {
"type": "git",
@@ -12,7 +12,7 @@
"engines": ["node >= 0.4.0"],
"main": "lib/wheat.js",
"dependencies": {
- "git-fs": ">=0.0.5",
+ "git-fs": ">=0.0.9",
"simple-mime": ">=0.0.1",
"haml": ">=0.2.5",
"step": ">=0.0.3",
Please sign in to comment.
Something went wrong with that request. Please try again.