Handle return code of parse_commit in revision machinery
[gitweb.git] / contrib / fast-import / import-tars.perl
index e46492048c75f4a3cda11c3bf7ca03889640e7b7..a43b2c52f05dc32183dbde422d091279b8e03042 100755 (executable)
                }
                print FI "\n";
 
-               my $path = "$prefix$name";
+               my $path;
+               if ($prefix) {
+                       $path = "$prefix/$name";
+               } else {
+                       $path = "$name";
+               }
                $files{$path} = [$next_mark++, $mode];
 
                $commit_time = $mtime if $mtime > $commit_time;