diff options
| author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-11-18 10:36:18 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2014-04-01 14:51:58 (GMT) |
| commit | f2128d4c2886ed4ac2532834f53b9522e6586601 (patch) | |
| tree | 3992d9027b2b8bb55893c2a4919fe6460e182edc /Tests/Tutorial/Step4/MathFunctions/MathFunctions.h | |
| parent | ff2451dc2483df34a70c611836b0ea887bfa3c82 (diff) | |
| download | CMake-f2128d4c2886ed4ac2532834f53b9522e6586601.zip CMake-f2128d4c2886ed4ac2532834f53b9522e6586601.tar.gz CMake-f2128d4c2886ed4ac2532834f53b9522e6586601.tar.bz2 | |
ExternalProject: Improve handling of git remote branches
ExternalProject handles git remote branches by commit hash. Due to
this, the git repository ends in detached states, and local commits
are discarded.
Use "git rebase" for remote branches instead of "git checkout". If
there are uncommitted changes, use "git stash save/pop" to save changes
and restore them after the rebase. If any of these operations fails,
try to restore the original status and exit with a fatal error, asking
the user to resolve the conflicts manually.
This also makes the behaviour of ExternalProject using git more similar
to the svn version, and probably more likely to what the user expects
by setting GIT_TAG to a branch.
Diffstat (limited to 'Tests/Tutorial/Step4/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions
