{"thread":{"id":"40998","subject":"git-svn does not honor preserve-empty-dirs","startedAt":"2015-12-14T21:56:01Z","lastAt":"2015-12-14T21:56:01Z","messageCount":1,"participants":["Andreas Dröscher"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"274442","messageId":"566F3AF1.90305@anticat.ch","threadId":"40998","inReplyTo":null,"subject":"git-svn does not honor preserve-empty-dirs","fromName":"Andreas Dröscher","fromEmail":"git@anticat.ch","sentAt":"2015-12-14T21:56:01Z","receivedAt":"2015-12-14T21:56:01Z","isPatch":false,"sender":{"key":"git@anticat.ch","avatar":null},"body":"Hi\n\nI think git-svn 2.6.4 does not behave as intended.\n\nAccording to the documentation preserve-empty-dirs should ensure that empty-\ndirectories are kept in all cases: \"Create a placeholder file in the local Git\nrepository for each empty directory fetched from Subversion. This includes\ndirectories that become empty by removing all entries in the Subversion\nrepository (but not the directory itself).\"\n\nI've attached an svn repo to demonstrate the issue. Everything goes fine\nduring the first 3 commits. In commit r4 a file is removed from the demo\nfolder, but not the directory. This works in svn but not in git.\n\nSteps to Reproduce:\n1. Extract tar to a directory of your choice e.g. /tmp/svn/\n2. git svn clone --stdlayout --preserve-empty-dirs file:///tmp/svn/\n3. Now trunk is empty. However the directory demo should have been preserved.\n\nI'm not a member of the mailing-list. Please CC me.\n\nBest Wishes\nAndreas\n\nSVN Commit Log:\n------------------------------------------------------------------------\nr4 | andreas | 2015-12-14 22:52:49 +0100 (Mo, 14. Dez 2015) | 1 Zeile\n\nempty dir\n------------------------------------------------------------------------\nr3 | andreas | 2015-12-14 22:52:22 +0100 (Mo, 14. Dez 2015) | 1 Zeile\n\nfill dir\n------------------------------------------------------------------------\nr2 | andreas | 2015-12-14 22:51:39 +0100 (Mo, 14. Dez 2015) | 1 Zeile\n\nadd empty dir demo\n------------------------------------------------------------------------\nr1 | andreas | 2015-12-14 22:50:46 +0100 (Mo, 14. Dez 2015) | 1 Zeile\n\ninitial import\n------------------------------------------------------------------------\n\n"}]}