Skip to content

Commit

Permalink
cvsimport: minor fixups
Browse files Browse the repository at this point in the history
Cleanup @skipped after it's used. Close a fhandle.
Removing suspects one at a time.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Martin Langhoff authored and Junio C Hamano committed May 23, 2006
1 parent f803eec commit f396f01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ ($$)
"GIT_COMMITTER_DATE=".strftime("+0000 %Y-%m-%d %H:%M:%S",gmtime($date)),
"git-commit-tree", $tree,@par);
die "Cannot exec git-commit-tree: $!\n";

close OUT;
}
$pw->writer();
$pr->reader();
Expand All @@ -661,6 +663,7 @@ ($$)
if (@skipped) {
$logmsg .= "\n\n\nSKIPPED:\n\t";
$logmsg .= join("\n\t", @skipped) . "\n";
@skipped = ();
}

print $pw "$logmsg\n"
Expand Down

0 comments on commit f396f01

Please sign in to comment.