summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-24 12:56:41 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-24 12:56:41 (GMT)
commit954185d414641b7d314683bae7399f8b7f920139 (patch)
treedc4a8968dbdf8de07b2ba2d45b07b7dd4656e135 /Utilities
parent9a1ee04dd5b7da3bda7159500b3eeda16ee86fb0 (diff)
downloadCMake-954185d414641b7d314683bae7399f8b7f920139.zip
CMake-954185d414641b7d314683bae7399f8b7f920139.tar.gz
CMake-954185d414641b7d314683bae7399f8b7f920139.tar.bz2
Utilities/Release: Fetch stage/master/head
Update our release scripts to fetch `refs/stage/master/head` from the `gitlab.kitware.com` repository. This will allow us to prepare releases from staged commits before merging them to `master` or `release`.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/release_cmake.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index ee1a0dc..b2c21b7 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -40,7 +40,8 @@ elseif(CMAKE_CREATE_VERSION STREQUAL "nightly")
set(GIT_FETCH "${GIT_COMMAND} fetch origin refs/${nightly}:refs/remotes/origin/${nightly}")
set(GIT_BRANCH origin/${nightly})
else()
- set(GIT_FETCH "")
+ set(stage stage/master/head)
+ set(GIT_FETCH "${GIT_COMMAND} fetch origin refs/${stage}:refs/remotes/origin/${stage}")
set(GIT_BRANCH ${CMAKE_CREATE_VERSION})
endif()