6
6
my($master_branch, $fatal_unless_clean, $check_patches_dir) = @_;
8
8
my($cur_branch) = check_git_status($fatal_unless_clean);
10
11
print "The checkout is not on the $master_branch branch.\n";
11
12
exit 1 if $master_branch ne 'master';
18
19
if ($check_patches_dir && -d 'patches/.git') {
22
23
print "Do you want to change it to branch $master_branch? [n] ";
25
26
system "cd patches && git checkout '$master_branch'";