We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5425d95 commit d8dcc0fCopy full SHA for d8dcc0f
lifecycleScripts/submodules/getStatus.js
@@ -5,6 +5,13 @@ var exec = require(path.join(rootDir, "./utils/execPromise"));
5
module.exports = function getStatus() {
6
return exec("git submodule status", { cwd: rootDir})
7
.then(function(stdout) {
8
+ if (!stdout) {
9
+ // In the case where we pull from npm they pre-init the submoduels for
10
+ // us and `git submodule status` returns empty-string. In that case
11
+ // we'll just assume that we're good.
12
+ return Promise.resolve([]);
13
+ }
14
+
15
function getStatusPromiseFromLine(line) {
16
var lineSections = line.trim().split(" ");
17
var onNewCommit = !!~lineSections[0].indexOf("+");
0 commit comments