]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Thu, 20 Dec 2012 19:28:28 +0000 (15:28 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 20 Dec 2012 19:28:28 +0000 (15:28 -0400)
IkiWiki/Plugin/git.pm

index 0c0e27521aa55d0381041e75721a618e1f55cf43..3879abeae5b20e05d4f9c2990c270c6943982b65 100644 (file)
@@ -341,8 +341,8 @@ sub parse_diff_tree ($) {
        my $dt_ref = shift;
 
        # End of stream?
-       return if !defined @{ $dt_ref } ||
-                 !defined @{ $dt_ref }[0] || !length @{ $dt_ref }[0];
+       return if ! @{ $dt_ref } ||
+                 !defined $dt_ref->[0] || !length $dt_ref->[0];
 
        my %ci;
        # Header line.