From 504da5d5ddf47c0e51e49d60a2ea414b68ce453d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 18 Nov 2020 17:52:13 +0800 Subject: [PATCH] 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 --- cmake/modules/Builduring.cmake | 1 + 1 file changed, 1 insertion(+) 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() -- 2.47.3