Commit aac6ee2a authored by Avijit's avatar Avijit Committed by Robert Kimball

Replaced the git command 'ls-repote --tags' with which produces the same output…

Replaced the git command 'ls-repote --tags' with  which produces the same output but works for clones without branches (#2066)
parent 2e10525b
...@@ -30,7 +30,7 @@ endfunction() ...@@ -30,7 +30,7 @@ endfunction()
function(NGRAPH_GET_TAG_OF_CURRENT_HASH) function(NGRAPH_GET_TAG_OF_CURRENT_HASH)
find_package(Git REQUIRED) find_package(Git REQUIRED)
execute_process( execute_process(
COMMAND ${GIT_EXECUTABLE} ls-remote --tags COMMAND ${GIT_EXECUTABLE} show-ref
RESULT_VARIABLE RESULT RESULT_VARIABLE RESULT
OUTPUT_VARIABLE TAG_LIST OUTPUT_VARIABLE TAG_LIST
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment