diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-03-02 18:38:32 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-03-02 18:38:32 +0000 |
commit | 5da454802de615647d979e564801d71c13ac5777 (patch) | |
tree | d33e6951e78b69c4ac3f28cd4a899294d2e79a35 /dev-vcs/gitolite-gentoo/files | |
parent | sys-kernel/dracut-007: Propagated few improvements from 008. Fixes bug #348085. (diff) | |
download | gentoo-2-5da454802de615647d979e564801d71c13ac5777.tar.gz gentoo-2-5da454802de615647d979e564801d71c13ac5777.tar.bz2 gentoo-2-5da454802de615647d979e564801d71c13ac5777.zip |
Revision bump, per repository umask was ignored when initialising a new repo
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/gitolite-gentoo/files')
-rw-r--r-- | dev-vcs/gitolite-gentoo/files/gitolite-gentoo-1.5.9.1-umask.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-1.5.9.1-umask.patch b/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-1.5.9.1-umask.patch new file mode 100644 index 000000000000..d215f1138886 --- /dev/null +++ b/dev-vcs/gitolite-gentoo/files/gitolite-gentoo-1.5.9.1-umask.patch @@ -0,0 +1,42 @@ +From cab19e5760b43385347a8960e48a05c547cf54e6 Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Tue, 1 Mar 2011 23:37:03 +0100 +Subject: [PATCH] Set umask properly before initialising a new repo + +--- + src/gitolite.pm | 4 ++-- + src/gl-compile-conf | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/gitolite.pm b/src/gitolite.pm +index 73038ca..d58df32 100644 +--- a/src/gitolite.pm ++++ b/src/gitolite.pm +@@ -274,9 +274,9 @@ sub where_is_rc + # NOTE: this sub will change your cwd; caller beware! + sub new_repo + { +- my ($repo, $hooks_dir, $creator) = @_; ++ my ($repo, $hooks_dir, $creator, $umask) = @_; + +- umask(get_repo_umask($repo)); ++ umask($umask ? $umask : get_repo_umask($repo)); + die "wildrepos disabled, can't set creator $creator on new repo $repo\n" + if $creator and not $GL_WILDREPOS; + +diff --git a/src/gl-compile-conf b/src/gl-compile-conf +index f8d35bb..e0a5331 100755 +--- a/src/gl-compile-conf ++++ b/src/gl-compile-conf +@@ -497,7 +497,7 @@ sub do_normal_repos + unless ($GL_NO_CREATE_REPOS) { + unless (-d "$repo.git") { + print STDERR "creating $repo...\n"; +- new_repo($repo, "$GL_ADMINDIR/hooks/common"); ++ new_repo($repo, "$GL_ADMINDIR/hooks/common", undef, $repos{$repo}{"umask"}); + # new_repo would have chdir'd us away; come back + wrap_chdir("$ENV{GL_REPO_BASE_ABS}"); + } +-- +1.7.3.4 + |