Re: git-svn: Fetch svn branches only and have git recognize them as branches?
- From
- Brian Koehmstedt <bkoehm@gmail.com>
- Date
- Mar 12, 2015, 23:51 UTC
- Message-ID
- <loom.20150313T004740-11@post.gmane.org>
- In-Reply-To
- <xmqq385924j3.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 17 quoted lines
> > git svn init --minimize-url \ > --trunk http://repository-root/foo/trunk \ > --branches http://repository-root/foo/branches \ > --tags http://repository-root/foo/tags > > And this is where the new --minimize-url command-line switch > comes in to allow for this behavior to continue working. > > The description of the commit makes me think that mimicking the > sample command line without minimize-url ought to work, i.e. > > git svn init \ > --trunk http://abc.com/repo/trunk \ > --branches http://abc.com/repo/branches \ > --tags http://abc.com/repo/tags >
Sounds like what I need. But both of these are yielding the following error:
"E: 'http:/abc.com/foo/trunk' is not a complete URL and a separate URL is not specified"
Notice the one slash after http:.
Here's the exact script I'm running to test:
$ cat sample.sh #!/bin/sh
rm -rf .git
git svn init \
--trunk http://abc.com/foo/trunk \
--branches http://abc.com/foo/branches \
--tags http://abc.com/foo/tags