From cc38d0352f53f44561953b09b9e422cee3d8c530 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 18 Apr 2012 11:22:26 +0200 Subject: [PATCH] =?UTF-8?q?Strip=20all=20whitespace=20from=20revision=20fr?= =?UTF-8?q?om=20subversion=20call.=20Patch=20provided=20by=20Petr=20Ro?= =?UTF-8?q?=C4=8Dkai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/Hydra/Helper/AddBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index c6c7703a..dd425128 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -179,7 +179,7 @@ sub fetchInputSVN { "|", ["sed", 's/^ *\([0-9]*\).*/\1/']); die "Cannot get head revision of Subversion repository at `$uri':\n$stderr" unless IPC::Run::run(@cmd, \$stdout, \$stderr); - $revision = $stdout; chomp $revision; + $revision = $stdout; $revision =~ s/\s*([0-9]+)\s*/$1/sm; } die unless $revision =~ /^\d+$/;