checkPlugin: Don't create an empty commit

pull/4641/head
Richard Hansen 2021-01-09 01:20:08 -05:00 committed by John McLear
parent 38ca0c52a6
commit 071cca1d48
1 changed files with 2 additions and 1 deletions

View File

@ -467,7 +467,8 @@ fs.readdir(pluginPath, (err, rootFiles) => {
const cmd = [
'git rm -rf node_modules --ignore-unmatch',
'git add -A',
'git commit --allow-empty -m "autofixes from Etherpad checkPlugin.js"',
'{ ! git diff-index --cached --quiet HEAD || exit 0; }',
'git commit -m "autofixes from Etherpad checkPlugin.js"',
'git push',
].join(' && ');
if (autoCommit) {