Skip to content

Commit

Permalink
chore: try run in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloCore committed Oct 3, 2023
1 parent be431ca commit 1f6cd39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/danger_core/lib/src/danger_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DangerUtils {

static Future<String> spawn(String command,
{List<String> arguments = const []}) async {
final result = await Process.run(command, arguments);
final result = await Process.run(command, arguments, runInShell: true);

return result.stdout.toString().trim();
}
Expand Down Expand Up @@ -55,6 +55,9 @@ class DangerUtils {

final data =
await DangerUtils.spawn('git', arguments: ['diff', 'HEAD', base]);
print("=======");
print(data);
print("=======");
return GitDiffParser.parse(data);
}
}

0 comments on commit 1f6cd39

Please sign in to comment.