if I clone a SVN repository with --preserve-empty-dirs it terminates at 
some point with i.e. following error:
folder/subfolder was not found in commit 
2dcb008c220f5f6fe33700c9e7deb0c8fa2b8607 (r4)

I tracked things down to the following problem:
- r1: Create a directory with subdirectory with a file
- r2: Remove the file (so it generates a virtual .gitignore)
- r3: Rename subdirectory
- r4: Add a symlink named like the old subdirectory

-> In GIT the symlink is actually not a symlink but a folder with the 
".gitignore" file ... which break things later when changing symlink

# Simple reproduce script:
svnadmin create test-svn-repo
svn co file://`pwd`/test-svn-repo test-svn-wc

mkdir -p test-svn-wc/folder/subfolder
touch test-svn-wc/folder/subfolder/file.txt
svn add test-svn-wc/*
svn ci -m 'Initial commit' test-svn-wc

svn rm test-svn-wc/folder/subfolder/file.txt
svn ci -m 'Removed file.txt' test-svn-wc

svn up test-svn-wc
svn mv test-svn-wc/folder/subfolder test-svn-wc/folder/subfolder2
svn ci -m 'Renamed subfolder' test-svn-wc

svn up test-svn-wc
ln -s subfolder2 test-svn-wc/folder/subfolder
svn add test-svn-wc/folder/subfolder
svn ci -m 'Added subfolder symlink' test-svn-wc

rm -f test-svn-wc/folder/subfolder
ln -s changedlink test-svn-wc/folder/subfolder
svn ci -m 'Changed symlink' test-svn-wc

git svn clone --preserve-empty-dirs file://`pwd`/test-svn-repo test-git
# this throws error: folder/subfolder was not found in commit 
2dcb008c220f5f6fe33700c9e7deb0c8fa2b8607 (r4)

Tested with git 1.7.10 (debian backports), svn 1.6.12 (debian)

Greets Mark

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to