From fefa79c34cf788ef5b897ba0d0eb8b30bf859968 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 1 Feb 2015 13:46:21 -0800 Subject: [PATCH] Project.pm: use --quiet when running git init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There’s no reason to be showing the git init output to the user on the project creation web page. It reveals the absolute file system path of the created repository would could be considered sensitive information. Suppress it by adding --quiet. --- Girocco/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index d1574e7..fe2d155 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -571,7 +571,7 @@ sub _setup { } else { chmod(02777, $self->{path}) or die "chmod 02777 $self->{path} failed: $!"; } - system($Girocco::Config::git_bin, '--git-dir='.$self->{path}, 'init', '--bare', '--shared='.$self->shared_mode()) == 0 + system($Girocco::Config::git_bin, '--git-dir='.$self->{path}, 'init', '--quiet', '--bare', '--shared='.$self->shared_mode()) == 0 or die "git init $self->{path} failed: $?"; system($Girocco::Config::git_bin, '--git-dir='.$self->{path}, 'config', 'receive.denyNonFastforwards', 'false') == 0 or die "disabling receive.denyNonFastforwards failed: $?"; -- 2.11.4.GIT