From 90b1e0be8df388f29942f6c891ed3f9a0657dd7f Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Thu, 2 Jun 2016 15:27:04 +0200 Subject: [PATCH] chore: fix git-changed-examples closes #1585 --- gulpfile.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 57f0541652..3675e70184 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1074,7 +1074,7 @@ function getChangedExamplesForCommit(commit, relativePath) { return commit.getDiff().then(function(diffList) { var filePaths = []; diffList.forEach(function (diff) { - diff.patches().forEach(function (patch) { + diff.patches().then(function (patch) { if (patch.isAdded() || patch.isModified) { var filePath = path.normalize(patch.newFile().path()); var isExample = filePath.indexOf(relativePath) >= 0; diff --git a/package.json b/package.json index fd0083db03..b8513be3da 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "minimatch": "^2.0.10", "mkdirp": "^0.5.1", "node-html-encoder": "0.0.2", - "nodegit": "0.5.0", + "nodegit": "0.13.0", "path": "^0.11.14", "prompt": "^0.2.14", "protractor": "^3.0.0",