Function "apply_patches" checks out the branch, where patches are applied if it already exists:
|
else() # The target branch already exists |
I think the logic here might lead to unexpected issues, e.g. if you download new opencl-clang commit, where a new patch is introduced, it won't be applied if the branch is not manually deleted.
Maybe the function should delete the branch at first step?