From 7ee74cd1dd28ee902582e71cf8d3ebddd06c0599 Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 8 Jul 2008 15:24:07 +0200 Subject: Better support for whitespace in filenames. --- lib/LXRng/Repo/Git/Directory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LXRng/Repo/Git/Directory.pm') diff --git a/lib/LXRng/Repo/Git/Directory.pm b/lib/LXRng/Repo/Git/Directory.pm index 6b24214..cf46915 100644 --- a/lib/LXRng/Repo/Git/Directory.pm +++ b/lib/LXRng/Repo/Git/Directory.pm @@ -60,7 +60,7 @@ sub contents { my (@dirs, @files); while (<$git>) { chomp; - my ($mode, $type, $ref, $node) = split(" ", $_); + my ($mode, $type, $ref, $node) = split(" ", $_, 4); if ($type eq 'tree') { push(@dirs, LXRng::Repo::Git::Directory->new($$self{'repo'}, $prefix.$node, -- cgit v1.2.3