fix: Build when git commit hash or branch is not available
This commit is contained in:
parent
3bd4a3ba8b
commit
0dcfeaefb3
@ -18,8 +18,12 @@ namespace hex::plugin::builtin {
|
||||
|
||||
result["build"] = {
|
||||
{ "version", IMHEX_VERSION },
|
||||
#if defined(GIT_COMMIT_HASH_LONG)
|
||||
{ "commit", GIT_COMMIT_HASH_LONG },
|
||||
#endif
|
||||
#if defined(GIT_BRANCH)
|
||||
{ "branch", GIT_BRANCH },
|
||||
#endif
|
||||
};
|
||||
|
||||
std::vector<std::string> commands;
|
||||
|
Loading…
x
Reference in New Issue
Block a user