Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Disabled continuous deployment in GHA. See `.github/workflows/build_artifact.yml`
for details
* `M<char>` now marks the current row to the given letter on the keyboard
* `--version` now states `Unknown` if the git tag/hash cannot be found

* Resolve crash when user tries to switch top or bottom line outside of scope
* Resolved crash when the user tries to `delete word` past the end of a line
Expand Down
6 changes: 5 additions & 1 deletion cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ function(version_setup)
OUTPUT_STRIP_TRAILING_WHITESPACE
)

set(GIT_VERSION "${GIT_TAG} (${GIT_HASH})")
if(NOT GIT_TAG OR NOT GIT_HASH)
set(GIT_VERSION "Unknown")
else()
set(GIT_VERSION "${GIT_TAG} (${GIT_HASH})")
endif()

string(TIMESTAMP COMPILE_DATE "%Y/%m/%d")
if(CMAKE_BUILD_TYPE STREQUAL "")
Expand Down
Loading