We need to check for msys as well as Windows in add--interactive.
authorMike Pape <dotzenlabs@gmail.com>
Fri, 11 Jul 2008 16:52:42 +0000 (18:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 12 Jul 2008 04:14:44 +0000 (21:14 -0700)
Signed-off-by: Mike Pape <dotzenlabs@gmail.com>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 ? "\"$_\"": $_ } @_;