title: Deploying with git, empty folders with Composer
body: <p>I'm trying to deploy my Slim app. I'm using <a href="https://github.com/fortrabbit/slimcontroller" rel="nofollow">SlimController</a>; both Slim and SlimController are loaded in <code>composer.json</code>:</p>
  
  <pre><code>{
    "require": {
      "slim/slim": "2.*",
      "slimcontroller/slimcontroller": "dev-master"
    }
  }
  </code></pre>
  
  <p>I have replicated my localhost evironment on my VPS: Ubuntu 13.04, Apache 2.4, PHP 5.5.3. I deploy with git to a bare repo. Everything works on localhost, and everything was working fine  on the server by pushing to the repo and running a <code>post-receive</code> git hook to move the files into the public Apache folder:</p>
  
  <pre><code>#!/bin/bash
  export GIT_WORK_TREE=/var/www/site
  git checkout -f dev
  </code></pre>
  
  <p>When I installed SlimController with Composer and pushed to the repo again, I can see the folder <code>vendor/slimcontroller/slimcontroller</code> was created, but it's empty! It has all the files on my localhost, and the app works, but on the server it has nothing, and the app throws an exception because it can't find the SlimController class.</p>
  
  <p>I made sure the folder has all the necessary permission when I created the bare repo and then running these commands (my user is already part of www-data group that owns Apache):</p>
  
  <pre><code>chown -R www-data:www-data /var/www/site
  chmod -R g+rw /var/www/site
  </code></pre>
  
  <p>I don't know what's going on. When I commit and push it all looks good, but then the folder ends up being empty for some reason. I tried adding other packages with Composer and same problem, path gets created but folder is empty on the server. I tried <code>composer install</code> from scratch a bunch of times, and while the <code>Slim</code> folder gets copied correctly the others do not. I'm clueless... Any ideas how to fix it?</p>