1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2024-11-27 00:43:50 +00:00

Try to make this crap work when .git is a directory

This commit is contained in:
King_DuckZ 2020-05-13 00:08:30 +02:00
parent a8a27b307f
commit dfd8446295

View file

@ -17,9 +17,6 @@ function (add_shared_git_project SUBMODULE_PATH)
if (NOT EXISTS "${submod_path}/.git")
message(FATAL_ERROR ".git not found in \"${submod_path}\". Not a git submodule?")
endif()
if (IS_DIRECTORY "${submod_path}/.git")
message(FATAL_ERROR "\"${submod_path}.git\" is a directory, not a file as expected. Not a git submodule?")
endif()
get_filename_component(proj_name_orig "${submod_path}" NAME)
if ("${proj_name_orig}" STREQUAL "")