{"action":"closed","issue":{"url":"https://api.github.com/repos/tools/godep/issues/212","labels_url":"https://api.github.com/repos/tools/godep/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/tools/godep/issues/212/comments","events_url":"https://api.github.com/repos/tools/godep/issues/212/events","html_url":"https://github.com/tools/godep/issues/212","id":71961090,"number":212,"title":"Respect .gitignore (or git ls-files) when copying","user":{"login":"abourget","id":93424,"avatar_url":"https://avatars.githubusercontent.com/u/93424?v=3","gravatar_id":"","url":"https://api.github.com/users/abourget","html_url":"https://github.com/abourget","followers_url":"https://api.github.com/users/abourget/followers","following_url":"https://api.github.com/users/abourget/following{/other_user}","gists_url":"https://api.github.com/users/abourget/gists{/gist_id}","starred_url":"https://api.github.com/users/abourget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abourget/subscriptions","organizations_url":"https://api.github.com/users/abourget/orgs","repos_url":"https://api.github.com/users/abourget/repos","events_url":"https://api.github.com/users/abourget/events{/privacy}","received_events_url":"https://api.github.com/users/abourget/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"freeformz","id":103,"avatar_url":"https://avatars.githubusercontent.com/u/103?v=3","gravatar_id":"","url":"https://api.github.com/users/freeformz","html_url":"https://github.com/freeformz","followers_url":"https://api.github.com/users/freeformz/followers","following_url":"https://api.github.com/users/freeformz/following{/other_user}","gists_url":"https://api.github.com/users/freeformz/gists{/gist_id}","starred_url":"https://api.github.com/users/freeformz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeformz/subscriptions","organizations_url":"https://api.github.com/users/freeformz/orgs","repos_url":"https://api.github.com/users/freeformz/repos","events_url":"https://api.github.com/users/freeformz/events{/privacy}","received_events_url":"https://api.github.com/users/freeformz/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-29T19:09:21Z","updated_at":"2015-09-11T18:53:24Z","closed_at":"2015-09-11T18:53:24Z","body":"I'm working on a package called `alchemist`. In there, I built binaries for 4 platforms, and I have sensitive config files. That's why I put all of those things in the .gitignore file.. so they're not committed to the repo.\r\n\r\nThis repo is in my GOPATH, and I work on it from time to time.\r\n\r\nNow I have another repo, called `bazooka-joe`, which uses `alchemist`.  When I `godep save` in `bazooka-joe`, it copies *everything* from the `alchemist` repo.. including my sensitive files and phat binaries.\r\n\r\nCouldn't godep merely copy the files that *are* in that revision (with `git ls-files` or something) ?"}}