git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitweb: reset input record separator in parse_commit even on error
@ 2006-09-09 15:12 Sven Verdoolaege
  2006-09-09 20:51 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Verdoolaege @ 2006-09-09 15:12 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

---
This probably never happens, but just in case...

 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 7afdf33..60dd598 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -897,8 +897,8 @@ sub parse_commit {
 		my $fd = git_pipe("rev-list", "--header", "--parents", "--max-count=1", $commit_id)
 			or return;
 		@commit_lines = split '\n', <$fd>;
-		close $fd or return;
 		$/ = "\n";
+		close $fd or return;
 		pop @commit_lines;
 	}
 	my $header = shift @commit_lines;
-- 
0.99.8c.g64e8-dirty

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-09 22:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-09 15:12 [PATCH] gitweb: reset input record separator in parse_commit even on error Sven Verdoolaege
2006-09-09 20:51 ` Jeff King
2006-09-09 22:00   ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).