Comments (13)
Will be done using file_mode parameter.
https://github.com/akzhan/git-commit-notifier/commit/0d4417972c0aa1bf64b6301d4ba792f2ab8de094
pull request sent.
from git-commit-notifier.
Thanks
from git-commit-notifier.
Take a note that file mode is Unix-specific functionality.
I suppose that default behaviour (operating system and umask dependent) is optimal one.
So we need to allow users override default settings in rare cases like issue #56.
from git-commit-notifier.
I don't like this approach using a parameter. We should think about:
- why do we need this file anyway? is there a more elegant solution?
- would be 664 a better default?
- if not, can we get the file mode form another file in the repo and copy it?
from git-commit-notifier.
My users have a new umask set to 002 - I'm not completely in favor of that solution but it might work. I let you know if its any useful to us.
from git-commit-notifier.
This file(s) stores previously handled commits. This logic in codebase very old. I can't answer yet is it required.
People uses default settings and all work great in usual cases. So 0664 is not good default.
Yes, we can get file mode from old version of file and set it on new version of file (current logic is creation of file and replacing of the old one in one atomic operation).
from git-commit-notifier.
No I don't mean to copy the file mode from the old version of the same file, I meant to copy the file mode from another file that is laying there in the repo since all git users must have the rights for those other files, too.
from git-commit-notifier.
Yes: "Yes, we can get file mode from old version of file and set it on new version of file (current logic is creation of file and replacing of the old one in one atomic operation)."
That would solve my problem completely!
I just checked, the notifier is resetting the mode to 644, ignoring the umask.
from git-commit-notifier.
@bitboxer, @ened, - I'll update code to copy mode from old file to the new one?
It is most correct way i suppose.
from git-commit-notifier.
Copy the mode from which file? from the old file the system is recreating? Why not copy the file mode of another file in that repo? That way the first time the file is created the file mode will be correct.
from git-commit-notifier.
Yes I write about recreating only.
First run.. hm... which another file from?
from git-commit-notifier.
I don't know which file would be the best. What about the config-file? Or go into the objects dir and get the first file there and copy it's file mode.
from git-commit-notifier.
Again, any updates on this guys? :)
from git-commit-notifier.
Related Issues (20)
- add URL of repository HOT 2
- emphasizing first line of commit message HOT 3
- Set Reply-to to recipient address? HOT 5
- Pushing a new branch resulted in Iconv::IllegalSequence in diff_to_html HOT 5
- Creation of a branch triggers notification mails for ALL commits in the repository HOT 4
- Add parameter to gem HOT 5
- ${repo_name} is not getting expanded as the project name for gitweb URL's
- COMMIT_LINK_MAP for gitlabhq missing parent in url
- gitlabhq file_link feature produces 404s HOT 5
- support trac with multiple repositories HOT 1
- nokogiri 1.6.0 dropped support for ruby 1.8.3 HOT 1
- I've got a Permission problem with git-commit-notifier HOT 4
- Sorry for Problem again HOT 4
- How to change auther HOT 3
- Link file summary list to web view repository HOT 1
- Invalid multibyte escape
- Pushing to GitLab with link_files fails under ruby 2 HOT 1
- Commits suppressed with unique_commits_per_branch:false and include_branches:[...]
- How to config smtps(port 465) in the file of git-notifier-config.yml
- Tag/deploy new version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-commit-notifier.