]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: silence "You are in 'detached HEAD' state" warning
authorKefu Chai <kchai@redhat.com>
Thu, 4 Mar 2021 10:25:33 +0000 (18:25 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Mar 2021 11:13:22 +0000 (19:13 +0800)
commitcfa20c33a73417dd874c49c0e6ca1dc482e3670c
tree45fea9bf748f0d26873674f9bd9d82938dc85733
parent98738cb206f2eecc3a2a78c974d12a33978c9998
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 <kchai@redhat.com>
cmake/modules/Buildpmem.cmake