From: Tony Finch Date: Fri, 26 Mar 2010 18:28:22 +0000 (+0000) Subject: git-daemon: suppress warnings X-Git-Tag: userv/0.6.1~111 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=commitdiff_plain;h=11b88dbb4e21bf4a21e611eb185b1df02d0d7379 git-daemon: suppress warnings --- diff --git a/git-daemon/git-daemon.pl b/git-daemon/git-daemon.pl index aabef66..5458c08 100755 --- a/git-daemon/git-daemon.pl +++ b/git-daemon/git-daemon.pl @@ -71,8 +71,10 @@ my $user = $vhost_user_from_tilde{$host} ? $tilde : $vhost_default_user{$host}; fail "no user configuration for $url" unless defined $user; syslog 'info', "$peer $user $url"; -my @opts = ("-DCLIENT=$addr", "-DHOST=$host", "-DREPO=$repo"); +my @opts = ("-DHOST=$host", "-DREPO=$repo"); push @opts, "-DTILDE=$tilde" if defined $tilde; +push @opts, "-DCLIENT=$addr" if defined $addr; +no warnings; # suppress errors to stderr exec 'userv', @opts, $user, 'git-upload-pack' or fail "exec userv: $!";