gitolite/src
Sitaram Chamarty 6863dca73a retain old file's permissions in wrap_print()
wrap_print() was written to create a new file and rename the old one to
avoid a partially written file being read by other processes.  This has
only been reported for the 'projects.list' file, but I just did it for
all files as a matter of course.

list of files currently written via this function:
gl-creater, gl-perms, description, git-daemon-export-ok, projects.list

However, some people want to do the following:

  - set REPO_UMASK tight (0077, default)
  - manually change the perms to something looser (typically g+rX) for
    specific repos
  - set core.sharedRepository to 0750 (git is documented to honor that
    config if available and to override umask)

Except that core.sharedRepository does not apply to files written by
gitolite and not git itself.  So they would open up their description
files and the next compile would close them again!

This patch prevents this from happening.  If the file already exists, it
maintains the same permissions after the rename.
2011-09-02 16:45:27 +05:30
..
gitolite.pm retain old file's permissions in wrap_print() 2011-09-02 16:45:27 +05:30
gitolite_env.pm gitolite v2.0rc1 -- please see new developer-notes doc 2011-01-16 07:26:13 +05:30
gitolite_rc.pm rc: get rid of GL_GITCONFIG_WILD 2011-08-17 21:53:06 +05:30
gl-admin-push gl-dont-panic replaced by more generic gl-admin-push 2011-07-13 22:29:44 +05:30
gl-auth-command (mirroring) reject non-local pushes if GL_HOSTNAME not set 2011-08-13 14:32:38 +05:30
gl-compile-conf new 'subconf' feature to explicitly do delegation 2011-08-30 20:50:34 +05:30
gl-conf-convert all src: (please read full commit message): allow local admin-defined hooks 2009-11-13 18:37:46 +05:30
gl-easy-install forcibly set user.{name,email} if needed 2011-05-04 14:04:10 +05:30
gl-install deal with a perl 5.14 deprecation on qw() 2011-08-04 22:01:13 +05:30
gl-mirror-push (mirroring) make bg push errors more visible/easier to grep 2011-08-16 14:28:01 +05:30
gl-mirror-shell default remote command should be 'info' if none given 2011-08-15 07:02:43 +05:30
gl-query-rc gitolite v2.0rc1 -- please see new developer-notes doc 2011-01-16 07:26:13 +05:30
gl-setup forcibly set user.{name,email} if needed 2011-05-04 14:04:10 +05:30
gl-setup-authkeys gl-setup-authkeys had an obsolete usage message 2011-08-26 07:10:56 +05:30
gl-system-install (minor) don't ignore dirty-ness when generating version number 2011-07-29 14:12:56 +05:30
gl-time gitolite v2.0rc1 -- please see new developer-notes doc 2011-01-16 07:26:13 +05:30
gl-tool (new mirroring) enhance gl-tool 2011-08-12 22:51:44 +05:30
sshkeys-lint (sshkeys-lint) add detection of duplicate *.pub files 2011-05-10 10:17:05 +05:30