summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAshish Sadanandan <asadanan@qti.qualcomm.com>2024-01-16 21:33:28 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-17 15:11:41 (GMT)
commit9ab1241035c8e88f93b01bdc93f47d7bdc4c9df3 (patch)
tree99ce486bfc18f69d2a247a24f5dead58858e9a1f /Tests
parent7010eb5feaf94470abeb058a77b0af80d043f157 (diff)
downloadCMake-9ab1241035c8e88f93b01bdc93f47d7bdc4c9df3.zip
CMake-9ab1241035c8e88f93b01bdc93f47d7bdc4c9df3.tar.gz
CMake-9ab1241035c8e88f93b01bdc93f47d7bdc4c9df3.tar.bz2
Tests: Improve CTest.UpdateGIT robustness to user gitconfig
Previously the test failed when the user's gitconfig has `push.default=nothing` set.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestUpdateGIT.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CTestUpdateGIT.cmake.in b/Tests/CTestUpdateGIT.cmake.in
index 7fddaa3..5e3448b 100644
--- a/Tests/CTestUpdateGIT.cmake.in
+++ b/Tests/CTestUpdateGIT.cmake.in
@@ -193,7 +193,7 @@ run_child(
)
run_child(
WORKING_DIRECTORY ${TOP}/user-source
- COMMAND ${GIT} push origin
+ COMMAND ${GIT} push origin HEAD
)
#-----------------------------------------------------------------------------
@@ -214,7 +214,7 @@ run_child(
)
run_child(
WORKING_DIRECTORY ${TOP}/user-source
- COMMAND ${GIT} push origin
+ COMMAND ${GIT} push origin HEAD
)
#-----------------------------------------------------------------------------