mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
i don't get it
This commit is contained in:
@ -4,7 +4,6 @@ let commit, commitInfo, branch;
|
||||
|
||||
export function shortCommit() {
|
||||
if (commit) return commit;
|
||||
if (process.env.GIT_COMMIT) return process.env.GIT_COMMIT;
|
||||
let c = execSync('git rev-parse --short HEAD').toString().trim();
|
||||
commit = c;
|
||||
return c
|
||||
@ -18,7 +17,6 @@ export function getCommitInfo() {
|
||||
}
|
||||
export function getCurrentBranch() {
|
||||
if (branch) return branch;
|
||||
if (process.env.GIT_BRANCH) return process.env.GIT_BRANCH;
|
||||
let b = execSync('git branch --show-current').toString().trim();
|
||||
branch = b;
|
||||
return b
|
||||
|
Reference in New Issue
Block a user