chiark
/
gitweb
/
~ian
/
userv-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3b32ef5
)
log repository location
author
Tony Finch
<dot@dotat.at>
Tue, 30 Mar 2010 20:58:52 +0000
(20:58 +0000)
committer
Ian Jackson
<ian@liberator.relativity.greenend.org.uk>
Sat, 22 May 2010 14:54:41 +0000
(15:54 +0100)
git-daemon/git-daemon-service.pl
patch
|
blob
|
history
diff --git
a/git-daemon/git-daemon-service.pl
b/git-daemon/git-daemon-service.pl
index c62c9a2c5d7d70533cf7ebe30bc6c42d5a5aacd1..19b632713d43aecab250fe2b5b25bf8d824066fc 100755
(executable)
--- a/
git-daemon/git-daemon-service.pl
+++ b/
git-daemon/git-daemon-service.pl
@@
-18,7
+18,7
@@
our ($service,$client,$dir,$repo);
${$main::{$_}} = $ENV{"USERV_U_$_"}
for grep s/^USERV_U_//, keys %ENV;
${$main::{$_}} = $ENV{"USERV_U_$_"}
for grep s/^USERV_U_//, keys %ENV;
-openlog
'userv-$service'
, 'pid', 'daemon';
+openlog
"userv-$service"
, 'pid', 'daemon';
sub fail { syslog 'err', "$client @_"; exit }
$_ = our $uri;
sub fail { syslog 'err', "$client @_"; exit }
$_ = our $uri;
@@
-36,6
+36,7
@@
fail "bad repository in $uri"
if $check_repo and $repo !~ /^[0-9A-Za-z._-]+[.]git$/;
fail "repository not exported for $uri"
if $check_export and not -e "$dir/git-daemon-export-ok";
if $check_repo and $repo !~ /^[0-9A-Za-z._-]+[.]git$/;
fail "repository not exported for $uri"
if $check_export and not -e "$dir/git-daemon-export-ok";
+syslog 'info', "$client $dir";
my @cmd = ($service, '--strict', '--timeout=30', $dir);
no warnings; # suppress errors to stderr
my @cmd = ($service, '--strict', '--timeout=30', $dir);
no warnings; # suppress errors to stderr