[libcode-tidyall-perl] 274/374: keep whole input
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:26:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcode-tidyall-perl.
commit 6c6029f42b5f6c6149d634d7aab97b922cbba93b
Author: Jonathan Swartz <swartz at pobox.com>
Date: Thu Sep 27 03:38:44 2012 -0700
keep whole input
---
lib/Code/TidyAll/Git/Prereceive.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/Code/TidyAll/Git/Prereceive.pm b/lib/Code/TidyAll/Git/Prereceive.pm
index 1902126..c42ae6b 100644
--- a/lib/Code/TidyAll/Git/Prereceive.pm
+++ b/lib/Code/TidyAll/Git/Prereceive.pm
@@ -26,7 +26,9 @@ sub check {
local $ENV{GIT_DIR} = $root_dir;
my ( @results, $tidyall );
- while ( my $line = <> ) {
+ my $input = do { local $/; <STDIN> };
+ my @lines = split( "\n", $input );
+ foreach my $line (@lines) {
chomp($line);
my ( $base, $commit, $ref ) = split( /\s+/, $line );
next unless $ref eq 'refs/heads/master';
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list