Skip to content

Commit

Permalink
build: silence git describe error output
Browse files Browse the repository at this point in the history
This change will silence the warning from git describe command when the project
is built using source tarball. The warning is
fatal: not a git repository: 'neovim/.git'
  • Loading branch information
Biswa96 committed Mar 5, 2023
1 parent 5dcf544 commit ca3bc56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/GenerateVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ execute_process(
COMMAND git --git-dir=${NVIM_SOURCE_DIR}/.git --work-tree=${NVIM_SOURCE_DIR} describe --first-parent --dirty --always
OUTPUT_VARIABLE GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
RESULT_VARIABLE RES)

if(RES)
Expand Down

0 comments on commit ca3bc56

Please sign in to comment.