[PATCH 1/5] gitweb: Add a comment explaining the meaning of $/
- From
Krzesimir Nowak <krzesimir@endocode.com>
- Date
- Dec 4, 2013, 13:42 UTC
- Message-ID
- <1386164583-14109-2-git-send-email-krzesimir@endocode.com>
- In-Reply-To
- <1386164583-14109-1-git-send-email-krzesimir@endocode.com>
So future reader will know what does it mean without running "perldoc perlvar".
Signed-off-by: Krzesimir Nowak <krzesimir@endocode.com> --- gitweb/gitweb.perl | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 68c77f6..ee61f9e 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2629,6 +2629,8 @@ sub git_parse_project_config { my $section_regexp = shift; my %config; + # input record separator, so getline does end on null, not + # newline local $/ = "\0"; open my $fh, "-|", git_cmd(), "config", '-z', '-l',
-- 1.8.3.1