pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
292 stars 45 forks source link

Clean directories uses incorrect recursive path? #32

Closed jessedobbelaere closed 10 years ago

jessedobbelaere commented 10 years ago

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