{"action":"created","issue":{"url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/56","repository_url":"https://api.github.com/repos/hexojs/hexo-deployer-git","labels_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/56/comments","events_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/56/events","html_url":"https://github.com/hexojs/hexo-deployer-git/issues/56","id":193570728,"number":56,"title":"Does not deploy .htaccess file","user":{"login":"davidwesst","id":867084,"avatar_url":"https://avatars.githubusercontent.com/u/867084?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwesst","html_url":"https://github.com/davidwesst","followers_url":"https://api.github.com/users/davidwesst/followers","following_url":"https://api.github.com/users/davidwesst/following{/other_user}","gists_url":"https://api.github.com/users/davidwesst/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwesst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwesst/subscriptions","organizations_url":"https://api.github.com/users/davidwesst/orgs","repos_url":"https://api.github.com/users/davidwesst/repos","events_url":"https://api.github.com/users/davidwesst/events{/privacy}","received_events_url":"https://api.github.com/users/davidwesst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T18:12:24Z","updated_at":"2016-12-07T20:52:21Z","closed_at":"2016-12-07T20:52:21Z","body":"I have created a generator that generates an .htaccess file in the public directory as expected when I execute the `hexo generate` command.\r\n\r\nUnfortunately, I cannot seem to get the git deployer to generate this file in the _.deploy_git_ directory. I have tried setting `ignore_hidden: false` which did not work, nor did specifically setting the _public_ directory to ignore_hidden to false.\r\n\r\nThis pattern has worked for me in the past, although with files that do not start with a .\r\n\r\nMy generator is as follows:\r\n\r\n```javascript\r\nvar fs = require('hexo-fs');\r\nvar path = require('path');\r\n\r\nhexo.extend.generator.register('htaccess', function(locals) {\r\n    return {\r\n        path: '.htaccess',\r\n        data: function() {\r\n            return fs.createReadStream(path.join(__dirname, '..','.htaccess'));\r\n        }\r\n    }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/comments/265569757","html_url":"https://github.com/hexojs/hexo-deployer-git/issues/56#issuecomment-265569757","issue_url":"https://api.github.com/repos/hexojs/hexo-deployer-git/issues/56","id":265569757,"user":{"login":"davidwesst","id":867084,"avatar_url":"https://avatars.githubusercontent.com/u/867084?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwesst","html_url":"https://github.com/davidwesst","followers_url":"https://api.github.com/users/davidwesst/followers","following_url":"https://api.github.com/users/davidwesst/following{/other_user}","gists_url":"https://api.github.com/users/davidwesst/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwesst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwesst/subscriptions","organizations_url":"https://api.github.com/users/davidwesst/orgs","repos_url":"https://api.github.com/users/davidwesst/repos","events_url":"https://api.github.com/users/davidwesst/events{/privacy}","received_events_url":"https://api.github.com/users/davidwesst/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T20:52:21Z","updated_at":"2016-12-07T20:52:21Z","body":"Worked like a charm! Thank you. \r\n\r\n@NoahDragon Any idea when/if the new version will be posted to the npm?"}}
{"actor":{"display_login":"davidwesst"}}