File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,11 @@ function(apply_patches repo_dir patches_dir base_revision target_branch)
104
104
ERROR_QUIET
105
105
OUTPUT_QUIET
106
106
)
107
- if (patches_needed) # The target branch doesn't exist
107
+ if (patches_needed EQUAL "128" )
108
+ message (STATUS "[OPENCL-CLANG] ${repo_dir} is not a git repository" )
109
+ return ()
110
+ endif ()
111
+ if (patches_needed EQUAL "1" ) # The target branch doesn't exist
108
112
list (SORT patches)
109
113
is_valid_revision(${repo_dir} ${base_revision} exists_base_rev)
110
114
@@ -142,7 +146,7 @@ function(apply_patches repo_dir patches_dir base_revision target_branch)
142
146
message (STATUS "[OPENCL-CLANG] Not present - ${patching_log} " )
143
147
endif ()
144
148
endforeach (patch)
145
- else ( ) # The target branch already exists
149
+ elsef(patches_needed EQUAL "0" ) # The target branch already exists
146
150
execute_process ( # Check it out
147
151
COMMAND ${GIT_EXECUTABLE} checkout ${target_branch}
148
152
WORKING_DIRECTORY ${repo_dir}
You can’t perform that action at this time.
0 commit comments