1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Build when git commit hash or branch is not available

This commit is contained in:
WerWolv 2023-05-16 12:02:17 +02:00
parent 3bd4a3ba8b
commit 0dcfeaefb3

View File

@ -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;