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

Re: git-svn --preserve-empty-dirs: Failed to strip path

From
IBIlya Basin <basinilya@gmail.com>
Date
Apr 27, 2013, 15:05 UTC
Message-ID
<1603362637.20130427190516@gmail.com>
In-Reply-To
<917648658.20130427112832@gmail.com>
Small test script:
    rm -rf testrepo.svn testrepo.gitsvn
    svnadmin create testrepo.svn
    url=file://`pwd`/testrepo.svn
    svn mkdir -m "" "$url/trunk" "$url/branches" "$url/tags"
    rm -rf testrepo
    svn co "$url" testrepo
    cd testrepo/trunk
    mkdir -p foo/bar/
    svn add foo/
    svn commit -mx
    svn rm foo/bar/
    svn commit -mx
    svn up
    mkdir -p baz/
    svn add baz/
    svn commit -mx
    echo x > fil.txt
    svn add fil.txt
    svn commit -mx
    cd ../..
    git svn clone --stdlayout --preserve-empty-dirs "$url" testrepo.gitsvn
result:
    Initialized empty Git repository in /tmp/testrepo.gitsvn/.git/
    r1 = 677463d6218c2229f81a8d891479435250cb9c87 (refs/remotes/trunk)
    r2 = f61c011cc800eaa9953026b8bd4534c9cc7825a8 (refs/remotes/trunk)
            D       foo/bar/.gitignore
            D       foo/bar/
    W: -empty_dir: trunk/foo/bar
    r3 = b674724183fe4960b1b10813c41a91c5b22e805e (refs/remotes/trunk)
    r4 = 8b1c8fdbf9b43390efb37b053c868a5f40567249 (refs/remotes/trunk)
            A       fil.txt
    Failed to strip path 'foo/.gitignore' ((?-xism:^trunk(/|$)))
    
git version 1.8.2
Previous: Ilya Basin
Message 2 of 2 in “git-svn --preserve-empty-dirs: Failed to strip path”
  1. Ilya BasinApr 27, 2013
  2. Ilya BasinApr 27, 2013

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.