Strip all whitespace from revision from subversion call. Patch provided by Petr Ročkai

This commit is contained in:
Rob Vermaas 2012-04-18 11:22:26 +02:00
parent 90e0ba2a7a
commit cc38d0352f

View file

@ -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+$/;