git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn: Fetch svn branches only and have git recognize them as branches?

From
BKBrian 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
Previous: Junio C HamanoNext: Brian Koehmstedt
Message 3 of 5 in “git-svn: Fetch svn branches only and have git recognize them as branches?”
  1. Brian KoehmstedtMar 12, 2015
  2. Junio C HamanoMar 12, 2015
  3. Brian KoehmstedtMar 12, 2015
  4. Brian KoehmstedtMar 16, 2015
  5. Eric WongMar 12, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.