import-tars: brown paper bag fix for file mode.
There is a bug with this $git_mode variable which should be 0644 or 0755, but nothing else I think. Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Michael Loeffler committed
Feb 12, 2007 at 15:17 UTC
d63ea115948a892f94451677c322c5a6f233adc6
1 file changed
+1
-3
contrib/fast-import/import-tars.perl
+1
-3
@@ -83,10 +83,8 @@ EOF
83
foreach my $path (keys %files)
84
{
85
my ($mark, $mode) = @{$files{$path}};
86
- my $git_mode = 0644;
87
- $git_mode |= 0700 if $mode & 0111;
86
$path =~ s,^([^/]+)/,, if $have_top_dir;
89
- printf FI "M %o :%i %s\n", $git_mode, $mark, $path;
87
+ printf FI "M %o :%i %s\n", $mode & 0111 ? 0755 : 0644, $mark, $path;
88
}
89
print FI "\n";
90