Closed tadhunt closed 8 years ago
Good catch, @tadhunt!
The way this feature was implemented is by writing to a new file and then moving the file over to the old file, so the new file is being created with your default umask and hence may be different from the original file.
Prior moving the new temp file to the original location, we should ensure that the permissions are transferred. I'll look into this.
I believe this issue has been fixed. Please try it out and let me know if you are still seeing any discrepancies with file permissions.
Bug:
foo.sh
file checked into git with permissions0755
autogen.sh -i [...] foo.sh
0644
Expected behavior: