From: Kefu Chai Date: Wed, 18 Nov 2020 09:52:13 +0000 (+0800) Subject: cmake: set advice.detachedHead=false when cloning liburing X-Git-Tag: v16.1.0~540^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38153%2Fhead;p=ceph.git cmake: set advice.detachedHead=false when cloning liburing silence "detached HEAD" warning 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 performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/Builduring.cmake b/cmake/modules/Builduring.cmake index 3d9e4c64983b..3cd64d7cbf70 100644 --- a/cmake/modules/Builduring.cmake +++ b/cmake/modules/Builduring.cmake @@ -11,6 +11,7 @@ function(build_uring) GIT_REPOSITORY https://git.kernel.dk/liburing GIT_TAG "liburing-0.7" GIT_SHALLOW TRUE + GIT_CONFIG advice.detachedHead=false UPDATE_DISCONNECTED TRUE) endif()