@matheusbsbs / matheus-bagliano / commits / d0c32b6339
Fork 0

Fix import-tars fix.

This heeds advice from our resident Perl expert to make sure the script is not confused with a string that ends with /\n Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 29, 2007 at 00:31 UTC d0c32b63394992f8dd083a4f2f380ab190dbb2ca
1 file changed +1 -1
contrib/fast-import/import-tars.perl
+1 -1
@@ -52,7 +52,7 @@ foreach my $tar_file (@ARGV)
52 Z8 Z1 Z100 Z6
53 Z2 Z32 Z32 Z8 Z8 Z*', $_;
54 last unless $name;
55 - next if $name =~ '/$';
55 + next if $name =~ m{/\z};
56 $mode = oct $mode;
57 $size = oct $size;
58 $mtime = oct $mtime;