chiark / gitweb /
git-daemon: invoke 'git upload-pack' instead of 'git-upload-pack'
[userv-utils.git] / git-daemon / git-service
index f848db8b8bf35e2f5bf1a2c5b7457f35ede2f5de..9661434cc72d2d258cb04679e772723df7f7a30d 100755 (executable)
@@ -33,7 +33,7 @@ $path = $check_export ? "$dir/git-daemon-export-ok" : $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: $!";