{"action":"created","issue":{"url":"https://api.github.com/repos/github/git-lfs/issues/266","labels_url":"https://api.github.com/repos/github/git-lfs/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/github/git-lfs/issues/266/comments","events_url":"https://api.github.com/repos/github/git-lfs/issues/266/events","html_url":"https://github.com/github/git-lfs/issues/266","id":71618554,"number":266,"title":"Git LFS partial download","user":{"login":"technoweenie","id":21,"avatar_url":"https://avatars.githubusercontent.com/u/21?v=3","gravatar_id":"","url":"https://api.github.com/users/technoweenie","html_url":"https://github.com/technoweenie","followers_url":"https://api.github.com/users/technoweenie/followers","following_url":"https://api.github.com/users/technoweenie/following{/other_user}","gists_url":"https://api.github.com/users/technoweenie/gists{/gist_id}","starred_url":"https://api.github.com/users/technoweenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technoweenie/subscriptions","organizations_url":"https://api.github.com/users/technoweenie/orgs","repos_url":"https://api.github.com/users/technoweenie/repos","events_url":"https://api.github.com/users/technoweenie/events{/privacy}","received_events_url":"https://api.github.com/users/technoweenie/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/github/git-lfs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/github/git-lfs/labels/storage","name":"storage","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-28T15:18:28Z","updated_at":"2015-07-22T04:01:15Z","closed_at":null,"body":"When a download in `git lfs smudge` is cancelled, it sometimes leave some trash in `.git/lfs/objects`:\r\n\r\n```\r\n$ ls -al .git/lfs/objects/ab/cd\r\ntotal 43928\r\ndrwxr--r--  4 rick  staff    136 Apr 28 08:02 ./\r\ndrwxr--r--  3 rick  staff    102 Apr 28 08:02 ../\r\n-rw-r--r--  1 rick  staff      0 Apr 28 08:02 abcd...\r\n-rw-r--r--  1 rick  staff  13523 Apr 28 08:06 abcd...-temp\r\n```\r\n\r\nOn a second `git checkout`, the 0-length file gets moved over to the working directory.  My hunch is that the file gets opened for file locking purposes, but never cleaned up because the command was aborted."},"comment":{"url":"https://api.github.com/repos/github/git-lfs/issues/comments/123557846","html_url":"https://github.com/github/git-lfs/issues/266#issuecomment-123557846","issue_url":"https://api.github.com/repos/github/git-lfs/issues/266","id":123557846,"user":{"login":"andyneff","id":7596961,"avatar_url":"https://avatars.githubusercontent.com/u/7596961?v=3","gravatar_id":"","url":"https://api.github.com/users/andyneff","html_url":"https://github.com/andyneff","followers_url":"https://api.github.com/users/andyneff/followers","following_url":"https://api.github.com/users/andyneff/following{/other_user}","gists_url":"https://api.github.com/users/andyneff/gists{/gist_id}","starred_url":"https://api.github.com/users/andyneff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyneff/subscriptions","organizations_url":"https://api.github.com/users/andyneff/orgs","repos_url":"https://api.github.com/users/andyneff/repos","events_url":"https://api.github.com/users/andyneff/events{/privacy}","received_events_url":"https://api.github.com/users/andyneff/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T04:01:15Z","updated_at":"2015-07-22T04:01:15Z","body":"In the test I ran (and broke via Ctrl+C)\r\n```.git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24-temp``` is zero bytes\r\nand ```git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24``` does not exist\r\n\r\nI'm not sure I've ever seen the -temp not zero bytes, but I was not looking every time. I'm fairly certain the non-temp file is always missing."}}