summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestGIT.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-07-27 11:31:59 -0400
committerBrad King <brad.king@kitware.com>2010-07-27 11:31:59 -0400
commita7319cf1c155a0e82c88689c0b4fe54b389a580e (patch)
tree2d081bad79905906155d49925637e6003a13dbcb /Source/CTest/cmCTestGIT.h
parent7bf8dc1ac9d2c2430e247c2cfb54a6a4cb5f698a (diff)
downloadcmake-a7319cf1c155a0e82c88689c0b4fe54b389a580e.tar.gz
ctest_update: Run 'git submodule' at top level
The git submodule porcelain must be executed from the top level of the work tree. Use 'git rev-parse --show-cdup' to find the top level relative to the source tree. This is better than searching up the tree for .git ourselves because it will always work the same way Git does and thus honors settings like GIT_DISCOVERY_ACROSS_FILESYSTEM.
Diffstat (limited to 'Source/CTest/cmCTestGIT.h')
-rw-r--r--Source/CTest/cmCTestGIT.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGIT.h b/Source/CTest/cmCTestGIT.h
index 760def079a..1765340d50 100644
--- a/Source/CTest/cmCTestGIT.h
+++ b/Source/CTest/cmCTestGIT.h
@@ -33,6 +33,7 @@ private:
virtual bool UpdateImpl();
std::string FindGitDir();
+ std::string FindTopDir();
bool UpdateByFetchAndReset();
bool UpdateByCustom(std::string const& custom);