git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn --preserve-empty-dirs: Failed to strip path
@ 2013-04-27  7:28 Ilya Basin
  2013-04-27 15:05 ` Ilya Basin
  0 siblings, 1 reply; 2+ messages in thread
From: Ilya Basin @ 2013-04-27  7:28 UTC (permalink / raw)
  To: git

Hi.
I ran 'git svn init', then
    git config svn-remote.svn.preserve-empty-dirs true
    git config svn-remote.svn.placeholder-filename ".gitignore"
then 'git svn fetch' and I get this:
    ...
    r897 = dc26a4628a0e1fb79452a3f1953fbdc1feae69d1 (refs/remotes/svn/trunk)
            M       pom.xml
    Failed to strip path 'ADDBackEnd/api/src/main/java/com/sicap/dmc/addbe/api/services/local/.gitignore' ((?-xism:^trunk(/|$)))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git-svn --preserve-empty-dirs: Failed to strip path
  2013-04-27  7:28 git-svn --preserve-empty-dirs: Failed to strip path Ilya Basin
@ 2013-04-27 15:05 ` Ilya Basin
  0 siblings, 0 replies; 2+ messages in thread
From: Ilya Basin @ 2013-04-27 15:05 UTC (permalink / raw)
  To: git; +Cc: git

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

-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-27 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27  7:28 git-svn --preserve-empty-dirs: Failed to strip path Ilya Basin
2013-04-27 15:05 ` Ilya Basin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).