Skip to content

Commit b991d62

Browse files
committed
Fetch tags manually
1 parent d572b96 commit b991d62

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/system/AutoReview/CreateNewChangelogTest.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,22 @@ protected function setUp(): void
3131
{
3232
parent::setUp();
3333

34-
exec('git describe --tags --abbrev=0 2>/dev/null', $output, $exitCode);
34+
exec('git fetch --tags origin 2>&1', $output, $exitCode);
3535

3636
if ($exitCode !== 0) {
37-
$this->markTestSkipped('Unable to determine the current version from git tags.');
37+
$this->markTestSkipped(sprintf(
38+
"Unable to fetch git tags from origin.\nOutput: %s",
39+
implode("\n", $output),
40+
));
41+
}
42+
43+
exec('git describe --tags --abbrev=0 2>&1', $output, $exitCode);
44+
45+
if ($exitCode !== 0) {
46+
$this->markTestSkipped(sprintf(
47+
"Unable to get the latest git tag.\nOutput: %s",
48+
implode("\n", $output),
49+
));
3850
}
3951

4052
// Current tag should already have the next patch docs done, so for testing purposes,

0 commit comments

Comments
 (0)