summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40e907b)
raw | patch | inline | side by side (parent: 40e907b)
author | Eric Wong <normalperson@yhbt.net> | |
Mon, 3 Apr 2006 22:18:48 +0000 (15:18 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 4 Apr 2006 07:09:42 +0000 (00:09 -0700) |
fetching from repos without an authors-file defined was broken.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/git-svn/git-svn.perl | patch | blob | history |
index edfb19c39e969c71c270c3e14378b80780ab438f..e7fff46d22df50f9c7a43e08f458eb34cd14148e 100755 (executable)
$arg .= ' --bool' if ($o !~ /=[sfi]$/);
$arg .= " svn.$key"; # $key only matches [a-z\-], always shell-safe
if (ref $v eq 'ARRAY') {
- chomp(@$v = `$arg`);
+ chomp(my @tmp = `$arg`);
+ @$v = @tmp if @tmp;
} else {
- chomp($$v = `$arg`);
- $$v = 0 if $$v eq 'false';
+ chomp(my $tmp = `$arg`);
+ if ($tmp && !($arg =~ / --bool / && $tmp eq 'false')) {
+ $$v = $tmp;
+ }
}
}