From: Eric Wong Date: Sun, 11 Feb 2007 05:07:12 +0000 (-0800) Subject: git-svn: correctly handle boolean options via git-config X-Git-Tag: v1.5.0~35 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7774284ac733fac7a23bff058c949723953ece34;p=git.git git-svn: correctly handle boolean options via git-config We don't append a space after '--bool', so we can't expect a regular expression to match the space. Semi-noticed by Junio C Hamano :) Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index 8ebaae9ff..d792a62d7 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1610,7 +1610,7 @@ sub read_repo_config { @$v = @tmp if @tmp; } else { chomp(my $tmp = `$arg --get svn.$key`); - if ($tmp && !($arg =~ / --bool / && $tmp eq 'false')) { + if ($tmp && !($arg =~ / --bool/ && $tmp eq 'false')) { $$v = $tmp; } }