We need to check for msys as well as Windows in add--interactive.
[gitweb.git] / git-add--interactive.perl
index 903953e68e98535e754b5a5dd6ba22eb6074ef20..78a64e6e8a57a3b4bc79c1ef9727370b8cbb31f7 100755 (executable)
@@ -42,7 +42,7 @@ sub colored {
 my $patch_mode;
 
 sub run_cmd_pipe {
-       if ($^O eq 'MSWin32') {
+       if ($^O eq 'MSWin32' || $^O eq 'msys') {
                my @invalid = grep {m/[":*]/} @_;
                die "$^O does not support: @invalid\n" if @invalid;
                my @args = map { m/ /o ? "\"$_\"": $_ } @_;