[Bps-public-commit] r14644 - Pushmi/trunk/lib/Pushmi/Command

clkao at bestpractical.com clkao at bestpractical.com
Wed Jul 30 14:28:28 EDT 2008


Author: clkao
Date: Wed Jul 30 14:28:27 2008
New Revision: 14644

Modified:
   Pushmi/trunk/lib/Pushmi/Command/Runhook.pm

Log:
older svn does not pass devnull for pre-commit hook.

Modified: Pushmi/trunk/lib/Pushmi/Command/Runhook.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Command/Runhook.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Command/Runhook.pm	Wed Jul 30 14:28:27 2008
@@ -31,7 +31,7 @@
     $pushmi->ensure_consistency;
 
     my $locks;
-    if (!eof(\*STDIN)) {
+    if ($SVN::Core::VERSION ge '1.6.0' && !eof(\*STDIN)) {
         if ((scalar <STDIN>) =~ m'^LOCKS-TOKENS:') {
             while (<STDIN>) {
                 chomp;



More information about the Bps-public-commit mailing list