Code

git svn: Don't create empty directories whose parents were deleted
authorGreg Price <price@ksplice.com>
Tue, 8 Dec 2009 03:28:32 +0000 (22:28 -0500)
committerEric Wong <normalperson@yhbt.net>
Tue, 8 Dec 2009 04:47:08 +0000 (20:47 -0800)
commit33f2a3108eeacbd937021470aa6e67c01ceec960
tree60355f3f6d28b1963a2e9e99e6a505f1e4c1aca1
parente9e4c8b7473f6ee21f452c66430a0763681243d7
git svn: Don't create empty directories whose parents were deleted

Commit 6111b93 "git svn: attempt to create empty dirs on clone+rebase"
will create empty directories 'a/b' and 'a/c' if they were previously
created in SVN, even if their parent directory 'a' was deleted.

For example, unhandled.log may contain lines like this:

r32
  +empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/acl
  +empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/machine.d
  +empty_dir: packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/sipb-xen-auto/moira-acl
[...]
r314
  -empty_dir: packages/sipb-xen-remctl-auto

[ew: rewrote to be line-wrapped at <= 80-columns]

Reported-by: Evan Broder <broder@mit.edu>
Signed-off-by: Greg Price <price@ksplice.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl