From 1121f92dfb8ca5f1da4ecf54ab5332b49725395a Mon Sep 17 00:00:00 2001 From: EvgeniyKozev <127485837+EvgeniyKozev@users.noreply.github.com> Date: Wed, 31 Jan 2024 13:03:52 +0300 Subject: [PATCH] Don't use None version as custom (#294) --- cloud/storage/core/libs/version/version.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/storage/core/libs/version/version.cpp b/cloud/storage/core/libs/version/version.cpp index c3666f9b6ec..6af99710d07 100644 --- a/cloud/storage/core/libs/version/version.cpp +++ b/cloud/storage/core/libs/version/version.cpp @@ -14,6 +14,7 @@ namespace { //////////////////////////////////////////////////////////////////////////////// +const TStringBuf None = "None"; const TStringBuf ArcPart = "/arc/"; const TStringBuf ArcadiaSuffix = "/arcadia"; const TStringBuf StablePrefix = "stable-"; @@ -145,7 +146,7 @@ int GetRevisionFromBranch(const TString& branch) const TString& GetFullVersionString() { static const TString custom = GetCustomVersion(); - if (custom) { + if (custom && custom != None) { return custom; }