msfeldstein / gitignore

NPM package to automatically fetch gitignore files from github
MIT License
191 stars 12 forks source link

Can't fetch any file #5

Closed fabiofortkamp closed 9 years ago

fabiofortkamp commented 9 years ago

I installed gitignore as described in README, but I can't fetch any file. Running gitignore rails, gitignore python, gitignore tex always produce the same sort of message:

There is no gitignore for tex
Check https://github.com/github/gitignore for available types.

I checked the main.js file, and it seems the raw2.github... URL is wrong. If I go to the Github's gitignore repository, the URL format to get a raw version of the file is different. For example, for TeX it should be

https://raw.githubusercontent.com/github/gitignore/master/TeX.gitignore

And I don't know JavaScript, but the generated URL in main.js seems to be

https://raw2.github.com/github/gitignore/master/

Maybe just changing this bit works, but as I said, I'm not familiar with JavaScript.

msfeldstein commented 9 years ago

Thanks for the heads up on this. I just pushed v0.1.8, let me know if you're still seeing the issue.