Skip to content

Commit 16da6fb

Browse files
authored
fix _gitIsClean check (#3755)
closes #3754
1 parent 9bf9ec6 commit 16da6fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_test/test/common/utils.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ Future<void> stopServer({bool? cleanUp}) async {
111111
/// Checks whether the current git client is "clean" (no pending changes) for
112112
/// this package directory.
113113
bool _gitIsClean() {
114-
var gitStatus = Process.runSync('git', ['status', '.']).stdout as String;
115-
return gitStatus.contains('nothing to commit, working tree clean');
114+
var gitStatus =
115+
Process.runSync('git', ['status', '.', '--porcelain']).stdout as String;
116+
return gitStatus.isEmpty;
116117
}
117118

118119
/// Ensures that the current directory is a "clean" git client (no pending

0 commit comments

Comments
 (0)