base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / system / osquery / Remove-git-reset.patch
blobaf5b165a851ee94a3dfa19498754866710759283
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>
10 ---
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}")
19 endif()
21 - # We need to restore the source code to its original state, pre patch
22 - execute_process(
23 - COMMAND "${GIT_EXECUTABLE}" reset --hard HEAD
24 - RESULT_VARIABLE process_exit_code
25 - WORKING_DIRECTORY "${source_dir}"
26 - )
28 - if(NOT ${process_exit_code} EQUAL 0)
29 - message(FATAL_ERROR "Failed to git reset the following submodule: \"${source_dir}\"")
30 - endif()
32 set(patchSubmoduleSourceCode_Patched TRUE PARENT_SCOPE)
33 endfunction()
35 --
36 2.38.1