From: Kefu Chai Date: Thu, 4 Mar 2021 10:25:33 +0000 (+0800) Subject: cmake: silence "You are in 'detached HEAD' state" warning X-Git-Tag: v17.1.0~2681^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39826%2Fhead;p=ceph.git cmake: silence "You are in 'detached HEAD' state" warning git warns us when the repo is in 'detached HEAD' state, like: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. ... Turn off this advice by setting config variable advice.detachedHead to false Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/Buildpmem.cmake b/cmake/modules/Buildpmem.cmake index fc17baeaa821..46a246b94e80 100644 --- a/cmake/modules/Buildpmem.cmake +++ b/cmake/modules/Buildpmem.cmake @@ -18,6 +18,7 @@ function(build_pmem) GIT_REPOSITORY "https://github.com/ceph/pmdk.git" GIT_TAG "1.7" GIT_SHALLOW TRUE + GIT_CONFIG advice.detachedHead=false SOURCE_DIR ${CMAKE_BINARY_DIR}/src/pmdk CONFIGURE_COMMAND "" # Explicitly built w/o NDCTL, otherwise if ndtcl is present on the