projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
archimport: Fix a bug I introduced in the new log parser
[git.git]
/
git-archimport.perl
diff --git
a/git-archimport.perl
b/git-archimport.perl
index
1cf1261
..
0080850
100755
(executable)
--- a/
git-archimport.perl
+++ b/
git-archimport.perl
@@
-790,7
+790,7
@@
sub parselog {
# skip Arch control files, unescape pika-escaped files
foreach my $k (keys %want_headers) {
next unless (defined $ps->{$k});
# skip Arch control files, unescape pika-escaped files
foreach my $k (keys %want_headers) {
next unless (defined $ps->{$k});
- my @tmp;
+ my @tmp
= ()
;
foreach my $t (@{$ps->{$k}}) {
next unless length ($t);
next if $t =~ m!\{arch\}/!;
foreach my $t (@{$ps->{$k}}) {
next unless length ($t);
next if $t =~ m!\{arch\}/!;
@@
-804,7
+804,7
@@
sub parselog {
}
push @tmp, $t;
}
}
push @tmp, $t;
}
- $ps->{$k} = \@tmp
if scalar @tmp
;
+ $ps->{$k} = \@tmp;
}
}
}
}