[0.1.17] GIT_HASH: just the short hash (and -dirty), without the outdated v0.1.0 tag
This commit is contained in:
parent
be9ad707c4
commit
a88d5da4dd
@ -328,7 +328,7 @@ add_build_constants :: (w: Workspace, optimized: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GIT_HASH :: #run -> string {
|
GIT_HASH :: #run -> string {
|
||||||
result, revision := run_command("git", "describe", "--always", "--dirty", capture_and_return_output = true);
|
result, revision := run_command("git", "describe", "--always", "--dirty", "--exclude=*", capture_and_return_output = true);
|
||||||
if revision return trim(revision);
|
if revision return trim(revision);
|
||||||
return "-";
|
return "-";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user