From cfa20c33a73417dd874c49c0e6ca1dc482e3670c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 4 Mar 2021 18:25:33 +0800 Subject: [PATCH] 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 --- cmake/modules/Buildpmem.cmake | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3