summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestGIT.h
Commit message (Collapse)AuthorAgeFilesLines
* CTest: Update Git submodules with --recursiveBrad King2011-02-221-0/+2
| | | | | | Fail if submodules exist and the git version is less than 1.6.5.0. Inspired-by: Johan Björk <phb@spotify.com>
* ctest_update: Run 'git submodule' at top levelBrad King2010-07-271-0/+1
| | | | | | | | 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.
* ctest_update: Support ".git file" work treesBrad King2010-07-261-0/+2
| | | | | | | 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.
* ctest_update: Support Git upstream branch rewritesBrad King2010-06-081-1/+1
| | | | | | | | | | | | | Use 'git fetch' followed by 'git reset' to update the source tree. This is better than 'git pull' because it can handle a rewritten upstream branch and does not leave local modifications. After fetch, parse FETCH_HEAD to find the merge head that 'git pull' would choose to track the upstream branch. Then reset to the selected head. In the normal fast-forward case the behavior remains unchanged. However, now local modifications and commits will be erased, and upstream rewrites are handled smoothly. This ensures that the upstream branch is tested as expected.
* ctest_update: Support custom Git update commandBrad King2010-06-081-0/+4
| | | | | Define CTest configuration variable CTEST_GIT_UPDATE_CUSTOM to set a custom command line for updating Git-managed source trees.
* Fix for for bug #10550, fix some errors for an old Sun compiler.Bill Hoffman2010-04-281-0/+1
|
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Teach CTest to handle git repositoriesBrad King2009-04-221-0/+52
This creates cmCTestGIT to drive CTest Update handling on git-based work trees. Currently we always update to the head of the remote tracking branch (git pull), so the nightly start time is ignored for Nightly builds. A later change will address this. See issue #6994.