summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-07 20:49:38 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-07 20:49:44 -0800
commitf9ad77a739c0d012ee58b64eda2d7ec0d4e1df9d (patch)
tree6f2e3a4aa9ba13e5c74f2b838c4031721fc606e6 /git-svn.perl
parent33f2a3108eeacbd937021470aa6e67c01ceec960 (diff)
downloadgit-f9ad77a739c0d012ee58b64eda2d7ec0d4e1df9d.tar.gz
git svn: log removals of empty directories
This also adds a test case for: "git svn: Don't create empty directories whose parents were deleted" which was the reason we found this bug in the first place. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index bdd1f966c3..5a52068b12 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3891,11 +3891,11 @@ sub delete_entry {
}
print "\tD\t$gpath/\n" unless $::_q;
command_close_pipe($ls, $ctx);
- $self->{empty}->{$path} = 0
} else {
$self->{gii}->remove($gpath);
print "\tD\t$gpath\n" unless $::_q;
}
+ $self->{empty}->{$path} = 0;
undef;
}