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:
parent
a8a27b307f
commit
dfd8446295
1 changed files with 0 additions and 3 deletions
|
@ -17,9 +17,6 @@ function (add_shared_git_project SUBMODULE_PATH)
|
||||||
if (NOT EXISTS "${submod_path}/.git")
|
if (NOT EXISTS "${submod_path}/.git")
|
||||||
message(FATAL_ERROR ".git not found in \"${submod_path}\". Not a git submodule?")
|
message(FATAL_ERROR ".git not found in \"${submod_path}\". Not a git submodule?")
|
||||||
endif()
|
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)
|
get_filename_component(proj_name_orig "${submod_path}" NAME)
|
||||||
if ("${proj_name_orig}" STREQUAL "")
|
if ("${proj_name_orig}" STREQUAL "")
|
||||||
|
|
Loading…
Reference in a new issue