CB-7219 made sure compute commit id is run from cordova-js repo. Set cwd to cordova-js
diff --git a/tasks/lib/compute-commit-id.js b/tasks/lib/compute-commit-id.js
index 3c7f672..a4c4765 100644
--- a/tasks/lib/compute-commit-id.js
+++ b/tasks/lib/compute-commit-id.js
@@ -35,7 +35,6 @@
var gitPath = 'git';
var args = 'rev-list HEAD --max-count=1';
childProcess.exec(gitPath + ' ' + args, {cwd:cordovaJSDir}, function(err, stdout, stderr) {
-
var isWindows = process.platform.slice(0, 3) == 'win';
if (err && isWindows) {
gitPath = '"' + path.join(process.env['ProgramFiles'], 'Git', 'bin', 'git.exe') + '"';
@@ -55,6 +54,7 @@
}
});
} else {
+ console.log('no git');
done('???');
}