1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Only fetch remote default branch for mirrored git repos, not local ones, refs #10949 (#10996)

This commit is contained in:
Jordi Boggiano 2022-08-16 16:53:57 +03:00 committed by GitHub
parent 82e3059c6e
commit cc33db9257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -63,12 +63,9 @@ GIT;
$process
->expects([[
'cmd' => 'git remote show origin',
'stdout' => $stdoutFailure,
], [
'cmd' => 'git branch --no-color',
'stdout' => $stdout,
]]);
]], true);
$this->assertSame('main', $driver->getRootIdentifier());
}