- await internals.exec(`cd ${blogDirectory} && git init`);
- await internals.exec(`cd ${blogDirectory} && git add .`);
- await internals.exec(`cd ${blogDirectory} && git commit --allow-empty -m blog-sync-up-${Date.now()}`);
- await internals.exec(`cd ${blogDirectory} && git push ${remote} main --force`);
+ let output = null;
+
+ output = await internals.exec(`cd ${blogDirectory} && git init`);
+ internals.debuglog(output.stderr);
+
+ output = await internals.exec(`cd ${blogDirectory} && git add .`);
+ internals.debuglog(output.stderr);
+
+ output = await internals.exec(`cd ${blogDirectory} && git commit --allow-empty -m blog-sync-up-${Date.now()}`);
+ internals.debuglog(output.stderr);
+
+ output = await internals.exec(`cd ${blogDirectory} && git push ${remote} main --force`);
+ internals.debuglog(output.stderr);