1 From: Jack Baldry <jack.baldry@grafana.com>
2 Date: Tue, 15 Nov 2022 13:48:07 -0400
3 Subject: [PATCH] Remove git reset
5 This is not required for nixpkgs builds because we are not working in
6 the source repository and therefore do not need to be careful about
7 updating submodule content.
9 Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
11 libraries/cmake/source/modules/utils.cmake | 11 -----------
12 1 file changed, 11 deletions(-)
14 diff --git a/libraries/cmake/source/modules/utils.cmake b/libraries/cmake/source/modules/utils.cmake
15 --- a/libraries/cmake/source/modules/utils.cmake
16 +++ b/libraries/cmake/source/modules/utils.cmake
17 @@ -102,17 +102,6 @@ function(patchSubmoduleSourceCode library_name patches_dir source_dir apply_to_d
18 file(COPY "${source_dir}" DESTINATION "${parent_dir}")
21 - # We need to restore the source code to its original state, pre patch
23 - COMMAND "${GIT_EXECUTABLE}" reset --hard HEAD
24 - RESULT_VARIABLE process_exit_code
25 - WORKING_DIRECTORY "${source_dir}"
28 - if(NOT ${process_exit_code} EQUAL 0)
29 - message(FATAL_ERROR "Failed to git reset the following submodule: \"${source_dir}\"")
32 set(patchSubmoduleSourceCode_Patched TRUE PARENT_SCOPE)