{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12670","labels_url":"https://api.github.com/repos/docker/docker/issues/12670/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12670/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12670/events","html_url":"https://github.com/docker/docker/issues/12670","id":70316598,"number":12670,"title":"Why docker build duplicates git clone logic ","user":{"login":"dalanlan","id":5979704,"avatar_url":"https://avatars.githubusercontent.com/u/5979704?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanlan","html_url":"https://github.com/dalanlan","followers_url":"https://api.github.com/users/dalanlan/followers","following_url":"https://api.github.com/users/dalanlan/following{/other_user}","gists_url":"https://api.github.com/users/dalanlan/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanlan/subscriptions","organizations_url":"https://api.github.com/users/dalanlan/orgs","repos_url":"https://api.github.com/users/dalanlan/repos","events_url":"https://api.github.com/users/dalanlan/events{/privacy}","received_events_url":"https://api.github.com/users/dalanlan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T05:50:42Z","updated_at":"2015-04-23T12:45:02Z","closed_at":null,"body":"quick question\r\nWhy does `docker build` duplicate `git clone` logic in src code? Any difference?\r\n\r\nhttps://github.com/docker/docker/blob/master/api/client/build.go#L109\r\nhttps://github.com/docker/docker/blob/master/builder/job.go#L116"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/95574148","html_url":"https://github.com/docker/docker/issues/12670#issuecomment-95574148","issue_url":"https://api.github.com/repos/docker/docker/issues/12670","id":95574148,"user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T12:45:02Z","updated_at":"2015-04-23T12:45:02Z","body":"That's an interesting question.\r\n@tiborvass @erikh do you know why we don't just send the github URL to the daemon and let it do the clone?"}}