Skip to content

Commit 65da872

Browse files
committed
git diff to understand untracked files detected
1 parent 0aa1f8d commit 65da872

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

util/expand-liquid.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ function ensureNoGitChanges() {
115115
}
116116
if (stdout) {
117117
console.error('Untracked files detected:\n', stdout);
118+
exec('git diff', (error, stdout, _stderr) => {
119+
if (error) {
120+
console.error(`error calling \`git diff\`: ${error}`);
121+
} else {
122+
console.log('Git diff:\n', stdout);
123+
}
124+
});
118125
process.exit(1);
119126
}
120127
});

0 commit comments

Comments
 (0)