debughelp

This commit is contained in:
nora 2022-08-12 15:04:31 +02:00
parent 5e214059e1
commit 8305e3f0fe

View file

@ -3,11 +3,11 @@ const child_process = require("child_process");
const services = ["bar-service", "foo-service"]; const services = ["bar-service", "foo-service"];
function latestCommitInDirectory(dirname) { function latestCommitInDirectory(dirname) {
console.log(String( console.log(dirname, String(
child_process.execSync(`git log -n 2 -- ${dirname}`) child_process.execSync(`git log --oneline -n 3 ${dirname}`)
)) ))
return String( return String(
child_process.execSync(`git log --pretty=format:%H -n 1 -- ${dirname}`) child_process.execSync(`git log --pretty=format:%H -n 1 ${dirname}`)
); );
} }