Skip to content

Commit fc29359

Browse files
committed
git diff to understand untracked files detected
1 parent b151f7b commit fc29359

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

util/expand-liquid.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,18 @@ function ensureNoGitChanges() {
111111
exec('git status --porcelain', (error, stdout, _stderr) => {
112112
if (error) {
113113
console.error(`error calling \`git status\`: ${error}`);
114-
return;
114+
process.exit(1);;
115115
}
116116
if (stdout) {
117117
console.error('Untracked files detected:\n', stdout);
118-
process.exit(1);
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+
process.exit(1);
125+
});
119126
}
120127
});
121128
}

0 commit comments

Comments
 (0)