src/tasks/build.js
function getCommitSha () {
    try {
        return execSync("git rev-parse HEAD").toString();
    } catch (ignore) {
        console.warn("Failed to get commit sha via git command");
    }
    try {
        return execSync("cat .git/ORIG_HEAD").toString();
    } catch (ignore) {
        console.warn("Failed to get commit sha by reading from ORIG_HEAD");
    }
    return null;
}
function getCommitSha () {
    try {
        return execSync("git rev-parse HEAD").toString();
    } catch (ignore) {
        console.warn("Failed to get commit sha via git command");
    }
    try {
        return execSync("cat .git/ORIG_HEAD").toString();
    } catch (ignore) {
        console.warn("Failed to get commit sha by reading from ORIG_HEAD");
    }
    return null;
}
/*
Utils