Skip to content

Commit 0850b78

Browse files
authored
Try git fetch for unadvertised object error
Fixes fetching submodules from non-default branches.
1 parent 0c0bfbd commit 0850b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/CheckSubmodules.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ MACRO(GIT_SUBMODULE SUBMODULE_PATH FORCE_DEINIT FORCE_REMOTE)
113113
ENDIF()
114114
ENDMACRO()
115115

116-
SET(MISSING_COMMIT_PHRASES "no such remote ref;reference is not a tree")
117-
SET(RETRY_PHRASES "Failed to recurse;unadvertised object;cannot create directory;already exists;${MISSING_COMMIT_PHRASES}")
116+
SET(MISSING_COMMIT_PHRASES "no such remote ref;reference is not a tree;unadvertised object")
117+
SET(RETRY_PHRASES "Failed to recurse;cannot create directory;already exists;${MISSING_COMMIT_PHRASES}")
118118

119119
# Attempt to do lazy clone
120120
FOREACH(_submodule ${SUBMODULE_LIST})

0 commit comments

Comments
 (0)