title: Composer create-project fails on local package repository
body: <p>I'm trying to create a <em>local</em> repository to test a composer project but</p>
  
  <pre><code>composer create-project --repository-url=/path/to/packages.json vendor/project-name
  </code></pre>
  
  <p>fails with</p>
  
  <pre><code>[UnexpectedValueException]
  
  Unknown package has no name defined [...]
  </code></pre>
  
  <p>My <code>packages.json</code> is:</p>
  
  <pre><code>{
    "packages": {
      "vendor/project-name": {
        "dev-master": {
          "name": "vendor/project-name",
          "type": "project",
          "version": "dev-master",
          "source": {
            "url": "/path/to/project/.git",
            "type": "git"
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>As for <a href="http://getcomposer.org/doc/05-repositories.md#packages" rel="noreferrer">composer's guide</a>, this should be enough.</p>
  
  <p>Any clue?</p>