cmake: When replacing old tags, use origin.
Fetch new set of tags from the origin remote explicitly rather than whatever remote is associated with the current branch. In this way, old tags on other remotes get overwritten as well. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
20f57587e2
commit
2f23467245
|
@ -280,7 +280,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
|||
endforeach()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} fetch --tags
|
||||
COMMAND ${GIT_EXECUTABLE} fetch --tags origin
|
||||
OUTPUT_QUIET
|
||||
ERROR_QUIET
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
|
|
Loading…
Reference in New Issue