Skip to content

Commit 993ff8a

Browse files
Use git init -b main in integration tests
- Update WorkspaceGitServiceTest to use git init -b main - Update WorkspaceMgmtFacadeGitInfoTest to use git init -b main - Ensures consistent branch naming across all tests Co-authored-by: Manuel Kießling <manuel@kiessling.net>
1 parent db1e01e commit 993ff8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Integration/WorkspaceMgmt/WorkspaceGitServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function setUp(): void
5353
$this->testRepoPath = sys_get_temp_dir() . '/workspace-git-test-' . uniqid();
5454
mkdir($this->testRepoPath, 0777, true);
5555

56-
$this->runGitCommand('init');
56+
$this->runGitCommand('init -b main');
5757
$this->runGitCommand('config user.name "Test User"');
5858
$this->runGitCommand('config user.email "test@example.com"');
5959

tests/Integration/WorkspaceMgmt/WorkspaceMgmtFacadeGitInfoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function setUp(): void
5454
$this->testRepoPath = sys_get_temp_dir() . '/facade-git-test-' . uniqid();
5555
mkdir($this->testRepoPath, 0777, true);
5656

57-
$this->runGitCommand('init');
57+
$this->runGitCommand('init -b main');
5858
$this->runGitCommand('config user.name "Test User"');
5959
$this->runGitCommand('config user.email "test@example.com"');
6060

0 commit comments

Comments
 (0)