forked from lix-project/hydra
Strip all whitespace from revision from subversion call. Patch provided by Petr Ročkai
This commit is contained in:
parent
90e0ba2a7a
commit
cc38d0352f
|
@ -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+$/;
|
||||
|
|
Loading…
Reference in a new issue