From: Steven Walter <stevenrwalter@gmail.com>
To: Wink Saville <wink@saville.com>
Cc: git@vger.kernel.org
Subject: Re: git-svn segmetation fault
Date: Sat, 2 Feb 2008 21:42:25 -0500 [thread overview]
Message-ID: <20080203024225.GA23647@dervierte> (raw)
In-Reply-To: <47A51737.7050905@saville.com>
On Sat, Feb 02, 2008 at 05:21:59PM -0800, Wink Saville wrote:
> What steps would be needed to recreate a "local git repo" from the
> "git repo on srvr" that I could use against the svn repo?
>
> I tried a little test, I cloned my git repo on srvr locally to amc-xx
> and added the [svn-remote "svn"] section to amc-xx/.git/config
> and then did a git-svn fetch. From what happened it looks like I
> just did a git svn clone and didn't save any time.
After adding the svn-remote section, you'll want to copy
.git/refs/remotes/origin/master to .git/refs/remotes/git-svn. After
doing that, "git svn fetch" should see that you have all the needed
commits and do a quick rebuild of its metadata.
> Also, a follow up can I create an svn repo from a git repo.
I've not done it, but it should be possible. You would create the new
svn repository with a single empty commit (as empty as SVN would allow).
Import that revision into your git repository with git-svn. Then you
would either rebase or use grafts to make all of your git commits a
descendent of that single svn commit. In that way, the next time you
run "git svn dcommit" it will see all your local git commits as new
commits to send to subversion.
No guarantees though, as I've not tried it.
--
-Steven Walter <stevenrwalter@gmail.com>
Freedom is the freedom to say that 2 + 2 = 4
B2F1 0ECC E605 7321 E818 7A65 FC81 9777 DC28 9E8F
next prev parent reply other threads:[~2008-02-03 2:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 22:32 git-svn segmetation fault Wink Saville
2008-02-02 0:50 ` Wink Saville
2008-02-02 3:42 ` Steven Walter
2008-02-02 3:55 ` Wink Saville
2008-02-02 16:03 ` Steven Walter
2008-02-02 18:56 ` Wink Saville
2008-02-02 21:03 ` Steven Walter
2008-02-03 1:21 ` Wink Saville
2008-02-03 2:42 ` Steven Walter [this message]
2008-02-03 21:42 ` Wink Saville
2008-02-02 4:06 ` Eric Wong
2008-02-02 4:53 ` Wink Saville
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=20080203024225.GA23647@dervierte \
--to=stevenrwalter@gmail.com \
--cc=git@vger.kernel.org \
--cc=wink@saville.com \
/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).