summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18af29f)
raw | patch | inline | side by side (parent: 18af29f)
author | Alex Riesen <raa.lkml@gmail.com> | |
Mon, 22 Jan 2007 16:14:56 +0000 (17:14 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 22 Jan 2007 17:44:25 +0000 (09:44 -0800) |
Also add "git" to the pipe parameters, otherwise it does not work at all, as
no git commands are usable out of git context.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
no git commands are usable out of git context.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
perl/Git.pm | patch | blob | history |
diff --git a/perl/Git.pm b/perl/Git.pm
index 3474ad320f6c90a67eb4a5973092f4210d173e9d..58414e3ec80d227249b06c75abe027655079a8eb 100644 (file)
--- a/perl/Git.pm
+++ b/perl/Git.pm
_check_valid_cmd($cmd);
my $fh;
- if ($^O eq '##INSERT_ACTIVESTATE_STRING_HERE##') {
+ if ($^O eq 'MSWin32') {
# ActiveState Perl
#defined $opts{STDERR} and
# warn 'ignoring STDERR option - running w/ ActiveState';
# FIXME: This is probably horrible idea and the thing will explode
# at the moment you give it arguments that require some quoting,
# but I have no ActiveState clue... --pasky
- my $cmdline = join " ", @params;
- my @data = qx{$cmdline};
+ # Let's just hope ActiveState Perl does at least the quoting
+ # correctly.
+ my @data = qx{git @params};
bless { i => 0, data => \@data }, $class;
}