We now uri_escape the branch name for transmmission. The server
needs to do the same, otherwise the signature breaks.
chdir $target;
my @branches = `git branch 2>&1`;
chdir $target;
my @branches = `git branch 2>&1`;
- unless (grep {/^\* bf_$branch$/} @branches)
+ unless (grep {/^\* bf_\Q$branch\E$/} @branches)
{
chdir '..';
print "Missing checked out branch bf_$branch:\n",@branches
{
chdir '..';
print "Missing checked out branch bf_$branch:\n",@branches
use vars qw($VERSION); $VERSION = 'REL_0.1';
use vars qw($VERSION); $VERSION = 'REL_0.1';
my $content =
"changed_files=$changed_this_run&"
. "changed_since_success=$changed_since_success&"
my $content =
"changed_files=$changed_this_run&"
. "changed_since_success=$changed_since_success&"
- ."branch=$branch&res=$status&stage=$stage&animal=$animal&ts=$ts"
+ . 'branch=' . uri_escape($branch) . "&res=$status&stage=$stage&animal=$animal&ts=$ts"
."&log=$log_data&conf=$confsum";
my $sig= sha1_hex($content,$secret);
."&log=$log_data&conf=$confsum";
my $sig= sha1_hex($content,$secret);