git svn: fix empty directory creation
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 git svn: fix empty directory creation
Hi Junio,
I've acked and pushed this patch out from Michael to
git://git.bogomips.org/git-svn.git
Quoted 1 line
From
7c42e390a37a11b1f7a77f5f07c261a8f930663aMon Sep 17 00:00:00 2001
From: Michael J. Kiwala <[email protected]>
Date: Tue, 1 Jun 2010 16:24:57 -0500
Subject: [PATCH] git svn: fix empty directory creation
Avoid attempts to stat() the contents of '', which could happen when the root directory is empty. Additionally, remove the unnecessary '_' stat optimization since it was confusing and possibly throwing off the non-existent case.
[ew: fixed indentation, rewrote commit message]
Acked-by Eric Wong <[email protected]>
Signed-off-by Michael J. Kiwala <[email protected]>
--- git-svn.perl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
git-svn.perl +2 -1
@@ -2836,8 +2836,9 @@ sub mkemptydirs { foreach my $d (sort keys %empty_dirs) { $d = uri_decode($d); $d =~ s/$strip//; + next unless length($d); next if -d $d; - if (-e _) { + if (-e $d) { warn "$d exists but is not a directory\n"; } else { print "creating empty directory: $d\n";
Signature · 1 line
Eric Wong