chiark
/
gitweb
/
~ian
/
userv-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-daemon: invoke 'git upload-pack' instead of 'git-upload-pack'
[userv-utils.git]
/
git-daemon
/
git-service
diff --git
a/git-daemon/git-service
b/git-daemon/git-service
index f848db8b8bf35e2f5bf1a2c5b7457f35ede2f5de..9661434cc72d2d258cb04679e772723df7f7a30d 100755
(executable)
--- a/
git-daemon/git-service
+++ b/
git-daemon/git-service
@@
-33,7
+33,7
@@
$path = $check_export ? "$dir/git-daemon-export-ok" : $dir;
fail "$! $path" unless -e $path;
syslog 'notice', "$client $dir";
fail "$! $path" unless -e $path;
syslog 'notice', "$client $dir";
-my @cmd = ($service, '--strict', '--timeout=30', $dir);
+my @cmd = ($service
=~ m|^(git)-(.*)$|
, '--strict', '--timeout=30', $dir);
no warnings; # suppress errors to stderr
exec @cmd or fail "exec $service: $!";
no warnings; # suppress errors to stderr
exec @cmd or fail "exec $service: $!";