From 0850b781042885ce71798e138e2b4808b3d2fb5c Mon Sep 17 00:00:00 2001 From: Hyunjin Song Date: Fri, 13 Apr 2018 13:50:12 +0900 Subject: [PATCH] Try git fetch for unadvertised object error Fixes fetching submodules from non-default branches. --- cmake/modules/CheckSubmodules.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/CheckSubmodules.cmake b/cmake/modules/CheckSubmodules.cmake index 467d4cf9327..55c0381b8e1 100644 --- a/cmake/modules/CheckSubmodules.cmake +++ b/cmake/modules/CheckSubmodules.cmake @@ -113,8 +113,8 @@ MACRO(GIT_SUBMODULE SUBMODULE_PATH FORCE_DEINIT FORCE_REMOTE) ENDIF() ENDMACRO() -SET(MISSING_COMMIT_PHRASES "no such remote ref;reference is not a tree") -SET(RETRY_PHRASES "Failed to recurse;unadvertised object;cannot create directory;already exists;${MISSING_COMMIT_PHRASES}") +SET(MISSING_COMMIT_PHRASES "no such remote ref;reference is not a tree;unadvertised object") +SET(RETRY_PHRASES "Failed to recurse;cannot create directory;already exists;${MISSING_COMMIT_PHRASES}") # Attempt to do lazy clone FOREACH(_submodule ${SUBMODULE_LIST})