use strict;
use File::Find;
+use Cwd;
=comment
See accompanying License file for license details
-=cut
+=cut
##########################################################################
#
unshift @ret, "git not found in path\n";
main::send_result("$target-Git",$status,\@ret);
}
-
+
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
if ($main::verbose);
- unshift @branches,"Missing checked out branch bf_$branch:\n";
+ unshift @branches,"Missing checked out branch bf_$branch in " . cwd() . ":\n";
main::send_result("$target-Git",$status,\@branches);
}
my @pulllog = `git pull 2>&1`;