Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
contrib/git-svn: ensure repo-config returns a value before using it
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>
contrib/git-svn/git-svn.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
40e907b
)
diff --git
a/contrib/git-svn/git-svn.perl
b/contrib/git-svn/git-svn.perl
index edfb19c39e969c71c270c3e14378b80780ab438f..e7fff46d22df50f9c7a43e08f458eb34cd14148e 100755
(executable)
--- a/
contrib/git-svn/git-svn.perl
+++ b/
contrib/git-svn/git-svn.perl
@@
-77,10
+77,13
@@
$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;
+ }
}
}