{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/chef-git/issues/2","labels_url":"https://api.github.com/repos/Shopify/chef-git/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/chef-git/issues/2/comments","events_url":"https://api.github.com/repos/Shopify/chef-git/issues/2/events","html_url":"https://github.com/Shopify/chef-git/pull/2","id":108123493,"number":2,"title":"Adds git garbage collection to chef-git-client","user":{"login":"pallan","id":27247,"avatar_url":"https://avatars.githubusercontent.com/u/27247?v=3","gravatar_id":"","url":"https://api.github.com/users/pallan","html_url":"https://github.com/pallan","followers_url":"https://api.github.com/users/pallan/followers","following_url":"https://api.github.com/users/pallan/following{/other_user}","gists_url":"https://api.github.com/users/pallan/gists{/gist_id}","starred_url":"https://api.github.com/users/pallan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pallan/subscriptions","organizations_url":"https://api.github.com/users/pallan/orgs","repos_url":"https://api.github.com/users/pallan/repos","events_url":"https://api.github.com/users/pallan/events{/privacy}","received_events_url":"https://api.github.com/users/pallan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T12:49:25Z","updated_at":"2015-09-24T12:51:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/chef-git/pulls/2","html_url":"https://github.com/Shopify/chef-git/pull/2","diff_url":"https://github.com/Shopify/chef-git/pull/2.diff","patch_url":"https://github.com/Shopify/chef-git/pull/2.patch"},"body":"While @dwradcliffe was updating cooker he ran into a inodes issue. I did a file count check and found that the chef-git-client cookbooks folder was rather large and a lot of it was in the `.git` folder.  I ran garbage collection on it `git gc` and here are the before and after results,\r\n```\r\nroot@chef:/var/chef# sudo find . -xdev -type f | cut -d \"/\" -f 2 | sort | uniq -c | sort -n\r\n      1 lock\r\n      4 handlers\r\n    452 backup\r\n   1588 cache\r\n  53455 git\r\n\r\nroot@chef:/var/chef# sudo find . -xdev -type f | cut -d \"/\" -f 2 | sort | uniq -c | sort -n\r\n      1 lock\r\n      4 handlers\r\n    452 backup\r\n   1588 cache\r\n  14438 git\r\n```\r\n\r\nAs such I added a more aggressive gc call.  With the `--auto` flag it should only run if it needs to so it shouldn't slow things down if it needs too. Its hardcoded to only run if the hour is 0300 which means it would run once per day (but twice in an hour) which I think is aggressive enough\r\n\r\nr @dwradcliffe @baldowl @kvs @stonith "},"comment":{"url":"https://api.github.com/repos/Shopify/chef-git/issues/comments/142918507","html_url":"https://github.com/Shopify/chef-git/pull/2#issuecomment-142918507","issue_url":"https://api.github.com/repos/Shopify/chef-git/issues/2","id":142918507,"user":{"login":"pallan","id":27247,"avatar_url":"https://avatars.githubusercontent.com/u/27247?v=3","gravatar_id":"","url":"https://api.github.com/users/pallan","html_url":"https://github.com/pallan","followers_url":"https://api.github.com/users/pallan/followers","following_url":"https://api.github.com/users/pallan/following{/other_user}","gists_url":"https://api.github.com/users/pallan/gists{/gist_id}","starred_url":"https://api.github.com/users/pallan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pallan/subscriptions","organizations_url":"https://api.github.com/users/pallan/orgs","repos_url":"https://api.github.com/users/pallan/repos","events_url":"https://api.github.com/users/pallan/events{/privacy}","received_events_url":"https://api.github.com/users/pallan/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T12:51:47Z","updated_at":"2015-09-24T12:51:47Z","body":"Nevermind I found it."}}