title: How to correctly require a specific commit in Composer so that it would be available for dependent packages?
body: <p>I have a library <code>foo/foo-lib</code> which <code>requires</code> a specific commit from GitHub:</p>
  
  <pre><code>{
      "name": "foo/foo-lib",
      "repositories": [
          {
              "type": "vcs",
              "url": "https://github.com/KnpLabs/Gaufrette.git"
          }
      ],
      "require": {
          "knplabs/gaufrette": "dev-master#2633721877cae79ad461f3ca06f3f77fb4fce02e"
      }
  }
  </code></pre>
  
  <p>and it works fine:</p>
  
  <pre><code>$ composer update
  Loading composer repositories with package information
  Updating dependencies (including require-dev)                                 
    - Updating knplabs/gaufrette dev-master (2633721 =&gt; 2633721)
      Checking out 2633721877cae79ad461f3ca06f3f77fb4fce02e
  
  Generating autoload files
  </code></pre>
  
  <p>but when I require that library in other project:</p>
  
  <pre><code>{
      "name": "bar/bar-app",
      "repositories": [
          {
              "type": "vcs",
              "url": "ssh://git.example.com/foo-lib"
          }
      ],
      "require-dev": {
          "foo/foo-lib": "dev-master"
      }
  }
  </code></pre>
  
  <p>it yields dependency error:</p>
  
  <pre><code>Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - Installation request for foo/foo-lib dev-master -&gt; satisfiable by foo/foo-lib[dev-master].
      - foo/foo-lib dev-master requires knplabs/gaufrette dev-master#2633721877cae79ad461f3ca06f3f77fb4fce02e -&gt; no matching package found.
  </code></pre>
  
  <p>So my question is: how to correctly <code>require</code> the specific commit from GitHub in my library, so that it would be available in dependent packages?</p>