path: root/git-cvsserver.perl
diff options
authorStefan Karpinski <>2009-01-30 01:12:27 (GMT)
committerJunio C Hamano <>2009-01-31 05:06:27 (GMT)
commit499cc56a60b5c90415c74857035579713a07fa1b (patch)
tree133588dc8341e123e6fa24ab4444acd92c6ad200 /git-cvsserver.perl
parenta34a9dbbced36999496c52b43460825732d487ba (diff)
git-cvsserver: handle CVS 'noop' command.
The CVS protocol documentation, found at states the following about the 'noop' command: Response expected: yes. This request is a null command in the sense that it doesn't do anything, but merely (as with any other requests expecting a response) sends back any responses pertaining to pending errors, pending Notified responses, etc. In accordance with this, the correct way to handle the 'noop' command, when issued by a client, is to call req_EMPTY. The 'noop' command is called by some CVS clients, notably TortoiseCVS, thus making it desirable for git-cvsserver to respond to the command rather than choking on it as unknown. Signed-off-by: Stefan Karpinski <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'git-cvsserver.perl')
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index fef7faf..277ee4e 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -76,6 +76,7 @@ my $methods = {
'history' => \&req_CATCHALL,
'watchers' => \&req_EMPTY,
'editors' => \&req_EMPTY,
+ 'noop' => \&req_EMPTY,
'annotate' => \&req_annotate,
'Global_option' => \&req_Globaloption,
#'annotate' => \&req_CATCHALL,