chomp path to fix add/commit without message
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Mar 2010 16:52:47 +0000 (17:52 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Mar 2010 16:52:47 +0000 (17:52 +0100)
bak-git-server.pl

index b235902..ce4c099 100755 (executable)
@@ -95,6 +95,7 @@ sub pull_changes {
 
 while (my $client = $server->accept()) {
        my $line = <$client>;
+       chomp($line);
        warn "<<< $line\n";
        my ($user,$hostname,$pwd,$command,$rel_path,$message) = split(/\s+/,$line,5);