aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Repo/Git
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Repo/Git')
-rw-r--r--lib/LXRng/Repo/Git/Directory.pm2
-rw-r--r--lib/LXRng/Repo/Git/Iterator.pm2
2 files changed, 2 insertions, 2 deletions
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,
diff --git a/lib/LXRng/Repo/Git/Iterator.pm b/lib/LXRng/Repo/Git/Iterator.pm
index 702b4ca..418142c 100644
--- a/lib/LXRng/Repo/Git/Iterator.pm
+++ b/lib/LXRng/Repo/Git/Iterator.pm
@@ -28,7 +28,7 @@ sub new {
my @refs;
my $git = $repo->_git_cmd('ls-tree', '-r', $release);
while (<$git>) {
- if (/\S+\s+blob\s+(\S+)\s+(\S+)/) {
+ if (/\S+\s+blob\s+(\S+)\s+(.+)/) {
push(@refs, [$2, $1]);
}
}