# [PATCH] Removing hard-coded "via git-CVS emulator" message for commits

2 messages from 2008-04-13 to 2008-04-13. Participants: Fredrik Noring, Miklos Vajna.
Thread: https://gitlist.dev/t/13085

## Fredrik Noring, 2008-04-13 07:15

Subject: [PATCH] Removing hard-coded "via git-CVS emulator" message for commits
Message-ID: <17235429-EC83-4D73-97A5-BA835F3CD71D@nocrew.org>
URL: https://gitlist.dev/e/17235429-EC83-4D73-97A5-BA835F3CD71D%40nocrew.org

```
Hi all,

Attached patch removes the hard-coded "via git-CVS emulator" string  
appended to every commit message by the git-cvsserver command. I  
believe there are "commit-msg" hooks etc. that can achieve the same  
effect in cases where this string is desirable?

  git-cvsserver.perl |    1 -
  1 file changed, 1 deletion(-)

Without the patch, a typical commit message using git-cvsserver looks  
like this:

commit 4bea43114a8f7fafd72c67cd98c5d9e98d1a7cbb
Author: Fredrik Noring
Date:   Sun Apr 13 09:10:05 2008 +0200

     Commit message...

     via git-CVS emulator

All the best,
Fredrik



diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 29dbfc9..59a1609 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -1325,7 +1325,6 @@ sub req_ci
     # write our commit message out if we have one ...
     my ( $msg_fh, $msg_filename ) = tempfile( DIR => $TEMP_DIR );
     print $msg_fh $state->{opt}{m};# if ( exists ( $state->{opt}{m} ) );
-    print $msg_fh "\n\nvia git-CVS emulator\n";
     close $msg_fh;
 
     my $commithash = `git-commit-tree $treehash -p $parenthash < $msg_filename`;




```

## Miklos Vajna, 2008-04-13 14:03

Subject: Re: [PATCH] Removing hard-coded "via git-CVS emulator" message for commits
Message-ID: <20080413140326.GU24141@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080413140326.GU24141%40genesis.frugalware.org
In-Reply-To: <17235429-EC83-4D73-97A5-BA835F3CD71D@nocrew.org>

```
On Sun, Apr 13, 2008 at 09:15:40AM +0200, Fredrik Noring <noring@nocrew.org> wrote:
> Attached patch removes the hard-coded "via git-CVS emulator" string 

Please send a proper git patch, see Documentation/SubmittingPatches.

Thanks.

```
