Git development
 help / color / mirror / Atom feed
From: Ron Parker <ron.parker@mobot.org>
To: git@vger.kernel.org
Subject: Patch: Support slashes in branches in git-cvsserver
Date: Wed, 20 Dec 2006 14:55:40 -0600	[thread overview]
Message-ID: <1166648140.5380.40.camel@s2ua6340pxk.mobot.org> (raw)

Here is a little patch to allow git-cvsserver to support fetching from
branches with slashes in their names like:

	topic/convert-to-xhtml

>From 1d22e18f46a82eab3fe6d467b2b87fe8203ebacc Mon Sep 17 00:00:00 2001
From: Ron Parker <ron.parker@mobot.org>
Date: Wed, 20 Dec 2006 14:48:31 -0600
Subject: [PATCH] Support slashes in branches in git-cvsserver

---
 git-cvsserver.perl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 2a8447e..418c821 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -2087,7 +2087,9 @@ sub new
     die "Database dir '$self->{dbdir}' isn't a directory" unless
( defined($self->{dbdir}) and -d $self->{dbdir} );
 
     $self->{module} = $module;
-    $self->{file} = $self->{dbdir} . "/gitcvs.$module.sqlite";
+    my $mod = $module;
+    $mod =~ s/\//./g;
+    $self->{file} = $self->{dbdir} . "/gitcvs.$mod.sqlite";
 
     $self->{git_path} = $config . "/";
 
-- 
1.4.4.2.g8336


                 reply	other threads:[~2006-12-20 20:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166648140.5380.40.camel@s2ua6340pxk.mobot.org \
    --to=ron.parker@mobot.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox