File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments