diff options
author | Brad King <brad.king@kitware.com> | 2010-07-26 15:40:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-07-26 15:40:20 (GMT) |
commit | 7bf8dc1ac9d2c2430e247c2cfb54a6a4cb5f698a (patch) | |
tree | f2c0e4aabf72c38adde8c258bc29cd1be57a1af9 /Source/CTest/cmCTestGIT.h | |
parent | 65cb72f7583a25bd3bec3f6a41a7a71cffa44ee2 (diff) | |
download | CMake-7bf8dc1ac9d2c2430e247c2cfb54a6a4cb5f698a.zip CMake-7bf8dc1ac9d2c2430e247c2cfb54a6a4cb5f698a.tar.gz CMake-7bf8dc1ac9d2c2430e247c2cfb54a6a4cb5f698a.tar.bz2 |
ctest_update: Support ".git file" work trees
Commit c3781efb (Support Git upstream branch rewrites, 2010-06-08)
assumed that ".git/FETCH_HEAD" exists inside the source tree. Fix the
implementation to handle a work tree using a ".git file" to link to its
repository. Use "git rev-parse --git-dir" to locate the real .git dir.
Diffstat (limited to 'Source/CTest/cmCTestGIT.h')
-rw-r--r-- | Source/CTest/cmCTestGIT.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGIT.h b/Source/CTest/cmCTestGIT.h index d8681fe..760def0 100644 --- a/Source/CTest/cmCTestGIT.h +++ b/Source/CTest/cmCTestGIT.h @@ -32,6 +32,8 @@ private: virtual void NoteNewRevision(); virtual bool UpdateImpl(); + std::string FindGitDir(); + bool UpdateByFetchAndReset(); bool UpdateByCustom(std::string const& custom); bool UpdateInternal(); |