]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: check $top_srcdir/.git directly
authorKefu Chai <kchai@redhat.com>
Wed, 8 Apr 2020 10:00:10 +0000 (18:00 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 8 Apr 2020 10:03:37 +0000 (18:03 +0800)
commita05d7179e2c38f375ab565fa6f6bfc47dc1d2dd6
treef0fc90c0f5f55e002d7392da91768817073223fd
parente9f9e74f93251bffbd45f87c605ba7b928d6ebe7
cmake: check $top_srcdir/.git directly

in 0437adc33a8b83847ed36666971b5ea4d88a4901, we stop right before
reaching $top_srcdir, but we should stop at its parent directory.

in this change, instead of trying to be smart and to walk all the way
up to the root directory or $top_srcdir, we just check $top_srcdir/.git
directly, as we just know it's there or it does not exist at all.

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