We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf9ec6 commit 16da6fbCopy full SHA for 16da6fb
_test/test/common/utils.dart
@@ -111,8 +111,9 @@ Future<void> stopServer({bool? cleanUp}) async {
111
/// Checks whether the current git client is "clean" (no pending changes) for
112
/// this package directory.
113
bool _gitIsClean() {
114
- var gitStatus = Process.runSync('git', ['status', '.']).stdout as String;
115
- return gitStatus.contains('nothing to commit, working tree clean');
+ var gitStatus =
+ Process.runSync('git', ['status', '.', '--porcelain']).stdout as String;
116
+ return gitStatus.isEmpty;
117
}
118
119
/// Ensures that the current directory is a "clean" git client (no pending
0 commit comments