From: Josef Wolf <jw@raven.inka.de>
To: git@vger.kernel.org
Subject: git-svn with multiple remote repositories?
Date: Tue, 2 Dec 2008 22:39:30 +0100 [thread overview]
Message-ID: <20081202213930.GD12716@raven.wolf.lan> (raw)
Hello,
I am trying to create a git repository with two remote svn repositories
so that I can merge/move patch-sets back and forth between the svn
repositories.
This is what I have tried so far:
mkdir -p project
cd project
git-svn init -R private -s https://foo.bar/repos/private
Then I go and edit .git/config too look like this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[svn-remote "private"]
url = https://foo.bar/repos/private
fetch = trunk:refs/remotes/private/trunk
branches = branches/*:refs/remotes/private/*
tags = tags/*:refs/remotes/private/tags/*
[svn-remote "public"]
url = https://foo.bar/repos/public
fetch = trunk:refs/remotes/public/trunk
branches = branches/*:refs/remotes/public/*
tags = tags/*:refs/remotes/public/tags/*
And finally, I do
git-svn fetch -R private
git-svn fetch -R public
Both commands seem to fetch the contents from their origins. But
git-branch shows me only the local master branch with contents from
the "private" svn repository. When I do
git checkout public/trunk
the contents actually change to reflect the "public" svn repository,
but git-branch says I am on "(no branch)" at all.
As a newbie to git, I am somewhat confused now. Any hints how I can
get a hold on the remote branches merge between them?
next reply other threads:[~2008-12-02 21:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 21:39 Josef Wolf [this message]
2008-12-02 23:07 ` git-svn with multiple remote repositories? Jacob Helwig
2008-12-03 8:45 ` Michael J Gruber
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=20081202213930.GD12716@raven.wolf.lan \
--to=jw@raven.inka.de \
--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;
as well as URLs for NNTP newsgroup(s).