]> git.ipfire.org Git - thirdparty/git.git/commit - git-cvsserver.perl
git-cvsserver: handle CVS 'noop' command.
authorStefan Karpinski <stefan.karpinski@gmail.com>
Fri, 30 Jan 2009 01:12:27 +0000 (17:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 Jan 2009 05:06:27 +0000 (21:06 -0800)
commit499cc56a60b5c90415c74857035579713a07fa1b
tree133588dc8341e123e6fa24ab4444acd92c6ad200
parenta34a9dbbced36999496c52b43460825732d487ba
git-cvsserver: handle CVS 'noop' command.

The CVS protocol documentation, found at

  http://www.wandisco.com/techpubs/cvs-protocol.pdf

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 <stefan.karpinski@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsserver.perl