mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
Always use master as branch name in tests
This commit is contained in:
parent
87f3035988
commit
124679ea79
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const windows = process.platform === "win32";
|
|||
const createTestRepo = (repoDefaultConfig?: Partial<ActionConfig>) => {
|
||||
const repoDirectory = path.join(os.tmpdir(), `test${Math.random().toString(36).substring(2, 15)}`);
|
||||
cp.execSync(`mkdir ${repoDirectory}`);
|
||||
cp.execSync(`git init ${repoDirectory}`);
|
||||
cp.execSync(`git init --initial-branch=master ${repoDirectory}`);
|
||||
|
||||
const run = (command: string) => {
|
||||
return execute(repoDirectory, command);
|
||||
|
|
|
|||
Loading…
Reference in a new issue