* Problem with git bundle.
@ 2011-03-30 12:36 mav007ar
2011-03-30 20:18 ` Jeff King
2011-03-31 19:16 ` mav007ar
0 siblings, 2 replies; 3+ messages in thread
From: mav007ar @ 2011-03-30 12:36 UTC (permalink / raw)
To: git
Hi everyone. I am using git-svn and I want transfer a repository using git
bundle create ...
Does anyone has the right steps to perform this task?
Currently I'm doing the following.
1- git bundle create --all
2- git clone
3- cd into repository's directory just created.
4- Add [svn-remote "svn"]
url = https://svn.swacorp.com/svn/commerce/trunk/commerce-project
fetch = :refs/remotes/git-svn
into the .git/config file.
5- git svn fetch svn.
The problem is when I do the last step, I get ALL revisions with out
considering the revision included into the bundle.
Someone can help me?
Thanks in advance
--
View this message in context: http://git.661346.n2.nabble.com/Problem-with-git-bundle-tp6222619p6222619.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with git bundle.
2011-03-30 12:36 Problem with git bundle mav007ar
@ 2011-03-30 20:18 ` Jeff King
2011-03-31 19:16 ` mav007ar
1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2011-03-30 20:18 UTC (permalink / raw)
To: mav007ar; +Cc: git
On Wed, Mar 30, 2011 at 05:36:31AM -0700, mav007ar wrote:
> Hi everyone. I am using git-svn and I want transfer a repository using git
> bundle create ...
> Does anyone has the right steps to perform this task?
> Currently I'm doing the following.
>
> 1- git bundle create --all
> 2- git clone
> 3- cd into repository's directory just created.
> 4- Add [svn-remote "svn"]
> url = https://svn.swacorp.com/svn/commerce/trunk/commerce-project
> fetch = :refs/remotes/git-svn
> into the .git/config file.
> 5- git svn fetch svn.
>
> The problem is when I do the last step, I get ALL revisions with out
> considering the revision included into the bundle.
Clone will only clone what's in refs/heads of the bundle. In your case,
you also want the refs/remotes/git-svn branch (which is probably the
same as the "master" you bring across in the bundle).
So you could do this in the cloned repo:
git update-ref refs/remotes/git-svn master
And then your svn fetch should be much faster.
But note that git-svn also keeps some magic cache in .git/svn. If you
bring that information across, too, the initial fetch would probably be
faster. So I really wonder if what you want instead of bundle is to
simply tar up the .git directory of the original repo and copy the whole
thing to your destination.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with git bundle.
2011-03-30 12:36 Problem with git bundle mav007ar
2011-03-30 20:18 ` Jeff King
@ 2011-03-31 19:16 ` mav007ar
1 sibling, 0 replies; 3+ messages in thread
From: mav007ar @ 2011-03-31 19:16 UTC (permalink / raw)
To: git
Jeff, thanks a lot. It worked perfectly.
You are the best.
Cheers.
Martin
--
View this message in context: http://git.661346.n2.nabble.com/Problem-with-git-bundle-tp6222619p6228418.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-31 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 12:36 Problem with git bundle mav007ar
2011-03-30 20:18 ` Jeff King
2011-03-31 19:16 ` mav007ar
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).