Skip to content

Commit

Permalink
cmake: set advice.detachedHead=false when cloning liburing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tchaikov committed Nov 18, 2020
1 parent fbf83bb commit 504da5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/Builduring.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 504da5d

Please sign in to comment.