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

Re: Getting correct tree layout when importing svn repo into git

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Sep 17, 2008, 11:05 UTC
Message-ID
<20080917110510.GB13144@atjola.homenet>
In-Reply-To
<cfd18e0f0809170338v168c2991ma3964392e44e0194@mail.gmail.com>
On 2008.09.17 03:38:12 -0700, Michael Kerrisk wrote:
Show 14 quoted lines
> $ svn list file:///home/mtk/man-pages-rep/tags
> man-pages-2.00
> man-pages-2.01
> man-pages-2.02
> man-pages-2.03
> ...
> $ svn list file:///home/mtk/man-pages-rep/tags/man-pages-2.00
> man-pages
> $ svn list file:///home/mtk/man-pages-rep/tags/man-pages-2.01
> man-pages
> [and so on]
> $ svn list file:///home/mtk/man-pages-rep/branches
> $
> (i.e., no branches, since this has been a linear svn repo.)

That means that you also need to pass the "man-pages" suffix for the tags and branches.

git svn clone file:///path/to/repo \
	-T trunk/man-pages \
	-b branches/*/man-pages \
	-t tags/*/man-pages
Might require a more recent git-svn version, not sure about that.
Björn
Previous: Michael KerriskNext: Michael Kerrisk
Message 13 of 17 in “Getting correct tree layout when importing svn repo into git”
  1. Michael KerriskSep 16, 2008
  2. Dmitry PotapovSep 16, 2008
  3. Michael KerriskSep 16, 2008
  4. Dmitry PotapovSep 17, 2008
  5. Michael KerriskSep 17, 2008
  6. Andreas EricssonSep 17, 2008
  7. Michael KerriskSep 17, 2008
  8. Michael GebetsroitherSep 17, 2008
  9. Björn SteinbrinkSep 17, 2008
  10. Michael KerriskSep 17, 2008
  11. Michael J GruberSep 17, 2008
  12. Michael KerriskSep 17, 2008
  13. Björn SteinbrinkSep 17, 2008
  14. Michael KerriskSep 17, 2008
  15. Michael J GruberSep 17, 2008
  16. Michael KerriskSep 17, 2008
  17. Michael J GruberSep 17, 2008

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.