What I'm trying now is to use shelljs, but for some reason shell.exec('git rev-parse HEAD') just hangs.
This is my code:
function getLatestCommit() {
return shell.exec("git rev-parse HEAD", {
silent: true,
}).output.trim().substr(0, 7);
}
Does anyone know any other way to achieve this?
I'm working on windows...