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

git-svn problems with cloning

From
PKPiotr Krukowiecki <piotr.krukowiecki.news@gmail.com>
Date
Feb 7, 2011, 11:58 UTC
Message-ID
<AANLkTinHmE-_JFeZP1AQ9yKh0ZN3+oqug=+j+5JcFHcm@mail.gmail.com>
Hi,

I'm trying to git-svn clone repository. I have encountered two problems. For the the first one I have a workaround, but I'm lost with the second.

1. I have a problem with one commit which tries to create a file name
which is not acceptable by file system (fat32). I tried to ignore this
files by using --ignore-paths, but it does not work. Am I using
ignore-paths incorrectly or do I have to find a different workaround?
(I'm thinking about using specific revisions or using filter-branch).
Here's what's happening:

$ git svn clone -s -r164508 '--ignore-paths=.*https:.*' <url> Initialized empty Git repository in <path>/.git/ Using higher level of URL: <url> => <url> mkdir .git/svn/refs/remotes/tags/https:: Invalid argument at /usr/local/stow/git-1.7.4/libexec/git-core/git-svn line 3856

$ svn log -v -r164508 <url>
[...]
   A /<project>/tags/https:/blahblah

$ mkdir https: mkdir: cannot create directory `https:': Invalid argument

2. I have specified revision that do not have invalid file names in it
and it worker, but git reported error later on, I suppose due to
--ignore-paths:

$ git svn clone -s '--ignore-paths=^/branches/<list of branches>' '--ignore-paths=^/tags/<list of tags>' -r164510:HEAD <url> [...] r166131 = 86085ee643d1b8ecb60f6ec3212904a24dd4d71a (refs/remotes/<ignored branch 1> ) [...] r167889 = 1fdb8124d72e1bc417f7fe06051a5280675dc73b (refs/remotes/<ignored branch 2>)

	M	[...]	
Found merge parent (svn:mergeinfo prop):
1fdb8124d72e1bc417f7fe06051a5280675dc73b
[...]
W: Cannot find common ancestor between
689e9a85f91eb71e37ccd79063e0a5aaa37d1b74 and
5d04d29ab3c76835facade1859aed30129abecf4. Ignoring merge info.

Found merge parent (svn:mergeinfo prop): 039125717428084cdf4d38b8a98f431a9b656f1c

Couldn't find revmap for <url>/<ignored branch 3>/path fatal: ambiguous argument '86085ee643d1b8ecb60f6ec3212904a24dd4d71a^..1fdb8124d72e1bc417f7fe06051a5280675dc73b': unknown revision or path not in the working tree.

Use '--' to separate paths from revisions

rev-list 86085ee643d1b8ecb60f6ec3212904a24dd4d71a^..1fdb8124d72e1bc417f7fe06051a5280675dc73b: command returned error: 128

I'm not sure how to deal with this...
-- 
Piotrek
Message 1 of 1 in “git-svn problems with cloning”
  1. Piotr KrukowieckiFeb 7, 2011

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.