Skip to content

Commit

Permalink
textfile() must also respect repo-umask
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaramc committed Jun 12, 2014
1 parent 07ce4b9 commit 23b6b60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/Gitolite/Easy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ sub textfile {
_sanity($h{repo});
$h{dir} = "$rc{GL_REPO_BASE}/$h{repo}.git";
_die "repo '$h{repo}' does not exist" if not -d $h{dir};

my $umask = option( $h{repo}, 'umask' );
# note: using option() moves us to ADMIN_BASE, but we don't care here
umask oct($umask) if $umask;
}

# final full file name
Expand Down

0 comments on commit 23b6b60

Please sign in to comment.