-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create cache file as 0644 #4210
Conversation
Would anyone be running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and fixes the issue. I can't comment on the Windows side of things though.
bin/git-linguist
Outdated
Linguist v#{Linguist::VERSION} | ||
Detect language type and determine language breakdown for a given Git repository. | ||
Linguist v#{Linguist::VERSION} | ||
Detect language type and determine language breakdown for a given Git repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't <<~HELP
(with a tilde) be preferable to stripping the indentation entirely? (I forget which Ruby version the tilde syntax was introduced in, so correct me if using <<~
would introduce compatibility issues).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know the tilde version existed nor what version it was introduced in! I'll find out 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lowest Ruby version we ask Travis to run CI checks on is 2.3.3, and <<~
functions correctly there, so I'll use that. Thanks! ❤️
Set the cache file to mode
0644
so group users can read it. This was the behaviour pre-#4195;TempFile
insists on creating its files as0600
instead of according to the umask./cc @lildude @mhagger