git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH] git-cvsserver: handle CVS 'noop' command.
           [not found] <1232144521-21947-1-git-send-email-stefan.karpinski@gmail.com>
           [not found] ` <1232144521-21947-2-git-send-email-stefan.karpinski@gmail.com>
    @ 2009-01-29 21:35 ` Stefan Karpinski
      2009-01-29 22:45   ` Junio C Hamano
      1 sibling, 1 reply; 12+ messages in thread
    From: Stefan Karpinski @ 2009-01-29 21:35 UTC (permalink / raw)
      To: Junio C Hamano, git; +Cc: Stefan Karpinski
    
    The implementation is trivial: ignore the 'noop' command
    if it is sent. This command is issued by some CVS clients,
    notably TortoiseCVS. Without this patch, TortoiseCVS will
    choke when git-cvsserver complains about the unsupported
    command.
    
    Signed-off-by: Stefan Karpinski <stefan.karpinski@gmail.com>
    ---
    
    Since this change has no negative impact, is too simple to
    be wrong, and improves interaction with some clients, it
    seem to me like a no-brainer to apply it.
    
     git-cvsserver.perl |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/git-cvsserver.perl b/git-cvsserver.perl
    index fef7faf..c1e09ea 100755
    --- a/git-cvsserver.perl
    +++ b/git-cvsserver.perl
    @@ -188,7 +188,7 @@ while (<STDIN>)
             # use the $methods hash to call the appropriate sub for this command
             #$log->info("Method : $1");
             &{$methods->{$1}}($1,$2);
    -    } else {
    +    } elsif ($1 ne 'noop') {
             # log fatal because we don't understand this function. If this happens
             # we're fairly screwed because we don't know if the client is expecting
             # a response. If it is, the client will hang, we'll hang, and the whole
    -- 
    1.6.0.3.3.g08dd8
    
    ^ permalink raw reply related	[flat|nested] 12+ messages in thread

  • end of thread, other threads:[~2009-01-30  1:33 UTC | newest]
    
    Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1232144521-21947-1-git-send-email-stefan.karpinski@gmail.com>
         [not found] ` <1232144521-21947-2-git-send-email-stefan.karpinski@gmail.com>
    2009-01-23  5:43   ` [PATCH] git-cvsserver: run post-update hook *after* update Stefan Karpinski
    2009-01-23  8:00     ` Junio C Hamano
    2009-01-29 21:58       ` Stefan Karpinski
    2009-01-29 22:48         ` Junio C Hamano
    2009-01-29 23:26           ` Stefan Karpinski
    2009-01-29 22:56         ` Andy Parkins
    2009-01-29 21:35 ` [PATCH] git-cvsserver: handle CVS 'noop' command Stefan Karpinski
    2009-01-29 22:45   ` Junio C Hamano
    2009-01-29 23:39     ` Stefan Karpinski
    2009-01-29 23:46       ` Junio C Hamano
    2009-01-30  1:12         ` Stefan Karpinski
    2009-01-30  1:32     ` Martin Langhoff
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).