From 27b880c22a5c88bdf3c925d39b74fa2bbd53fba2 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Tue, 24 Sep 2024 17:27:49 +0000 Subject: [PATCH] fix _gitIsClean check --- _test/test/common/utils.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_test/test/common/utils.dart b/_test/test/common/utils.dart index 3834905ba..c966b005d 100644 --- a/_test/test/common/utils.dart +++ b/_test/test/common/utils.dart @@ -111,8 +111,9 @@ Future stopServer({bool? cleanUp}) async { /// Checks whether the current git client is "clean" (no pending changes) for /// this package directory. bool _gitIsClean() { - var gitStatus = Process.runSync('git', ['status', '.']).stdout as String; - return gitStatus.contains('nothing to commit, working tree clean'); + var gitStatus = + Process.runSync('git', ['status', '.', '--porcelain']).stdout as String; + return gitStatus.isEmpty; } /// Ensures that the current directory is a "clean" git client (no pending