{"action":"created","issue":{"url":"https://api.github.com/repos/JimGaylard/tbd/issues/11","labels_url":"https://api.github.com/repos/JimGaylard/tbd/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/JimGaylard/tbd/issues/11/comments","events_url":"https://api.github.com/repos/JimGaylard/tbd/issues/11/events","html_url":"https://github.com/JimGaylard/tbd/issues/11","id":56144818,"number":11,"title":"tbd_mktmp approach","user":{"login":"JimGaylard","id":1128120,"avatar_url":"https://avatars.githubusercontent.com/u/1128120?v=3","gravatar_id":"","url":"https://api.github.com/users/JimGaylard","html_url":"https://github.com/JimGaylard","followers_url":"https://api.github.com/users/JimGaylard/followers","following_url":"https://api.github.com/users/JimGaylard/following{/other_user}","gists_url":"https://api.github.com/users/JimGaylard/gists{/gist_id}","starred_url":"https://api.github.com/users/JimGaylard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimGaylard/subscriptions","organizations_url":"https://api.github.com/users/JimGaylard/orgs","repos_url":"https://api.github.com/users/JimGaylard/repos","events_url":"https://api.github.com/users/JimGaylard/events{/privacy}","received_events_url":"https://api.github.com/users/JimGaylard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-31T23:49:30Z","updated_at":"2015-02-03T23:44:04Z","closed_at":null,"body":"My current approach to check out a tree to a tmp dir:\r\n\r\n```\r\n$ git archive $(git rev-parse HEAD^{tree}) | tar -x -C $(mktemp -d --suffix tbdtmp)\r\n\r\n$ ls -la /tmp/*tbdtmp\r\ntotal 48\r\ndrwx------  4 vagrant 4096 Jan 31 23:44 ./\r\ndrwxrwxrwt 17 root    4096 Jan 31 23:44 ../\r\n-rw-rw-r--  1 vagrant  167 Jan 31 23:44 Dockerfile\r\n-rw-rw-r--  1 vagrant  185 Jan 31 23:44 Gemfile\r\n-rw-rw-r--  1 vagrant  118 Jan 31 23:44 .gitignore\r\ndrwxrwxr-x  3 vagrant 4096 Jan 31 23:44 lib/\r\n-rw-rw-r--  1 vagrant 1068 Jan 31 23:44 LICENSE.txt\r\n-rw-rw-r--  1 vagrant   29 Jan 31 23:44 Rakefile\r\n-rw-rw-r--  1 vagrant   59 Jan 31 23:44 README.md\r\n-rw-rw-r--  1 vagrant    8 Jan 31 23:44 .rspec\r\ndrwxrwxr-x  3 vagrant 4096 Jan 31 23:44 spec/\r\n-rwxrwxr-x  1 vagrant   32 Jan 31 23:44 test*\r\n```\r\n\r\nThoughts? "},"comment":{"url":"https://api.github.com/repos/JimGaylard/tbd/issues/comments/72761248","html_url":"https://github.com/JimGaylard/tbd/issues/11#issuecomment-72761248","issue_url":"https://api.github.com/repos/JimGaylard/tbd/issues/11","id":72761248,"user":{"login":"JimGaylard","id":1128120,"avatar_url":"https://avatars.githubusercontent.com/u/1128120?v=3","gravatar_id":"","url":"https://api.github.com/users/JimGaylard","html_url":"https://github.com/JimGaylard","followers_url":"https://api.github.com/users/JimGaylard/followers","following_url":"https://api.github.com/users/JimGaylard/following{/other_user}","gists_url":"https://api.github.com/users/JimGaylard/gists{/gist_id}","starred_url":"https://api.github.com/users/JimGaylard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimGaylard/subscriptions","organizations_url":"https://api.github.com/users/JimGaylard/orgs","repos_url":"https://api.github.com/users/JimGaylard/repos","events_url":"https://api.github.com/users/JimGaylard/events{/privacy}","received_events_url":"https://api.github.com/users/JimGaylard/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T23:44:04Z","updated_at":"2015-02-03T23:44:04Z","body":" @DanielHeath re: mtime issue, did you have any ideas about alternative approaches? I will try to use checkout and see if it will let me check out to an external directory. Just wondered if you had anything else in mind."}}