{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4961","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/4961/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4961/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4961/events","html_url":"https://github.com/composer/composer/pull/4961","id":136463804,"number":4961,"title":"Attempt to use shallow clones, fixes #3449","user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/composer/composer/labels/Reviewed","name":"Reviewed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/15","html_url":"https://github.com/composer/composer/milestones/1.2","labels_url":"https://api.github.com/repos/composer/composer/milestones/15/labels","id":1737550,"number":15,"title":"1.2","description":"","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":15,"state":"open","created_at":"2016-04-28T22:05:54Z","updated_at":"2016-07-02T16:24:02Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2016-02-25T18:01:37Z","updated_at":"2016-07-02T16:24:02Z","closed_at":"2016-07-02T16:24:02Z","pull_request":{"url":"https://api.github.com/repos/composer/composer/pulls/4961","html_url":"https://github.com/composer/composer/pull/4961","diff_url":"https://github.com/composer/composer/pull/4961.diff","patch_url":"https://github.com/composer/composer/pull/4961.patch"},"body":"This should do shallow clones but as we can not always know 100% the branch name (there's one edge case like both `2.0` and `2.0.x` branches will become `2.0.x-dev` so from that we can not know for sure which was the original name. In case it fails due to that or just an outdated git then there's a fallback to the complete fetch/clone.\r\n\r\nIn theory this makes initial installs a lot faster, but once it updates it has to fetch more data and I believe this will always result in a full fetch, so the first update will take the time hit vs the initial install. Further updates should still be fast as usual though.\r\n\r\nThis can be tried out using this phar file:\r\n\r\nhttps://seld.be/composer-shallow.phar\r\n\r\nTo try it, use `composer install --prefer-source --profile` or similar to get timing info and force clones.\r\n\r\nI'd love to get some more feedback from people before merging this because it has a high chance of unforeseen repercussions :)"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/230109924","html_url":"https://github.com/composer/composer/pull/4961#issuecomment-230109924","issue_url":"https://api.github.com/repos/composer/composer/issues/4961","id":230109924,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T16:24:02Z","updated_at":"2016-07-02T16:24:02Z","body":"As we have #5384 that caches the git clones I think it's preferable to abandon the shallow cloning approach. It's unlikely to be faster and introduces some edge cases + potential for user confusion so I'll close."}}
{"actor":{"display_login":"Seldaek"}}