Fixed file creation
This commit is contained in:
parent
256ba92f7e
commit
3b1153cf5b
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ const generateLocalBuildInfo = async (target: string): Promise<LocalBuildInfo> =
|
||||||
{
|
{
|
||||||
const gitRevision = fs.readFileSync(path.join(__dirname, ".git", "HEAD")).toString();
|
const gitRevision = fs.readFileSync(path.join(__dirname, ".git", "HEAD")).toString();
|
||||||
if(gitRevision.indexOf("/") === -1) {
|
if(gitRevision.indexOf("/") === -1) {
|
||||||
info.gitVersion = (gitRevision || "0000000").substr(0, 7);
|
info.gitVersion = (gitRevision || "00000000").substr(0, 8);
|
||||||
} else {
|
} else {
|
||||||
info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substr(5).trim())).toString().substr(0, 7);
|
info.gitVersion = fs.readFileSync(path.join(__dirname, ".git", gitRevision.substr(5).trim())).toString().substr(0, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue