Skip to content

Commit a2f0492

Browse files
authored
[CMake] Preserve non-PATCH brackets in title using git am --keep-non-patch (#597)
(cherry picked from commit c274f33)
1 parent 03a7cce commit a2f0492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/CMakeFunctions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function(apply_patches repo_dir patches_dir base_revision target_branch)
136136
message(STATUS "[OPENCL-CLANG] Patch ${patch} is already in local branch - ignore patching")
137137
else()
138138
execute_process( # Apply the patch
139-
COMMAND ${GIT_EXECUTABLE} am --3way --ignore-whitespace -C0 ${patch}
139+
COMMAND ${GIT_EXECUTABLE} am --3way --keep-non-patch --ignore-whitespace -C0 ${patch}
140140
WORKING_DIRECTORY ${repo_dir}
141141
OUTPUT_VARIABLE patching_log
142142
)

0 commit comments

Comments
 (0)