File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function patch(array $options = [
3333 'working-directory|d ' => null ,
3434 'patch-source-directory|s ' => null ,
3535 'patch-name|p ' => 'template ' ,
36- 'source-branch ' => 'master ' , // rename to main in next mayor release
36+ 'source-branch ' => 'main ' ,
3737 'branch-name ' => null ,
3838 'halt-before-commit ' => false ,
3939 ]): int
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ public static function loadFixtures(): void
3030 exec ('git clone ' . self ::$ bareRepository . ' ' . $ tmpDirectory . ' 2> /dev/null ' );
3131 chdir ($ tmpDirectory );
3232 exec (
'git config --global user.email "[email protected] " && git config --global user.name "Patchbot" ' );
33- exec ('git checkout --orphan master 2> /dev/null ' );
33+ exec ('git checkout --orphan main 2> /dev/null ' );
3434 file_put_contents ($ tmpDirectory . 'README.md ' , '# ACME Project ' . PHP_EOL . 'Hello World ' . PHP_EOL . PHP_EOL );
3535 exec ('git add -A ' );
3636 exec ('git commit -a -m "Add README" ' );
37- exec ('git push origin master 2> /dev/null ' );
37+ exec ('git push origin main 2> /dev/null ' );
3838 }
3939 }
4040
You can’t perform that action at this time.
0 commit comments