I noticed that the directories I specified with clean_directories[] are not cleaned up after uploading.
Warning: Invalid argument supplied for foreach() in /.../git-deploy on line 516
I tried to debug the problem. By logging the steps in the recursive_remove function, I found out that the files are found. But when they reach the foreach loop, the recursive function adds the path a second time to the files, resulting in a false path like: frontend/cache/compiled_templates//frontend/cache/compiled_templates/test.txt
I noticed that the directories I specified with
clean_directories[]
are not cleaned up after uploading.I tried to debug the problem. By logging the steps in the
recursive_remove
function, I found out that the files are found. But when they reach the foreach loop, the recursive function adds the path a second time to the files, resulting in a false path like:frontend/cache/compiled_templates//frontend/cache/compiled_templates/test.txt