]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: set advice.detachedHead=false when cloning liburing 38153/head
authorKefu Chai <kchai@redhat.com>
Wed, 18 Nov 2020 09:52:13 +0000 (17:52 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Nov 2020 09:53:43 +0000 (17:53 +0800)
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 <new-branch-name>

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Builduring.cmake

index 3d9e4c64983ba642d656b3afc5a8d7f0a18f3c7f..3cd64d7cbf7006b251a6f8c2f1d7bf1f954e38ef 100644 (file)
@@ -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()