Try removing the deploy cache on the server using: rm -rf /var/www/path/.dep/repo
Also add the task to clear the cache to the project's deploy file:
task('deploy:clear_cache', function () {
run('rm -rf {{deploy_path}}/.dep/repo');
});
before('deploy:update_code', 'deploy:clear_cache');