From: Johannes Schindelin Date: Wed, 26 Jul 2006 19:59:08 +0000 (+0200) Subject: git-cvsserver: support multiline commit messages X-Git-Tag: v1.4.2-rc3~56 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c3cff49301c44767c72391cb5288aa0d10563a9;p=git.git git-cvsserver: support multiline commit messages Earlier, cvsserver barfed when you tried to check in files with a multiline commit message. That is what Argumentx is for... Argument: lines can be followed by several Argumentx: lines, which means they should be appended. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 0bbd871c1..5b73837bb 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -547,12 +547,15 @@ sub req_Argument { my ( $cmd, $data ) = @_; - # TODO : Not quite sure how Argument and Argumentx differ, but I assume - # it's for multi-line arguments ... somehow ... + # Argumentx means: append to last Argument (with a newline in front) $log->debug("$cmd : $data"); - push @{$state->{arguments}}, $data; + if ( $cmd eq 'Argumentx') { + ${$state->{arguments}}[$#{$state->{arguments}}] .= "\n" . $data; + } else { + push @{$state->{arguments}}, $data; + } } # expand-modules \n