chore: fix git-changed-examples

closes #1585
This commit is contained in:
Foxandxss 2016-06-02 15:27:04 +02:00 committed by Ward Bell
parent 1d294a831c
commit 90b1e0be8d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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",