Code

git-svn: correctly handle boolean options via git-config
authorEric Wong <normalperson@yhbt.net>
Sun, 11 Feb 2007 05:07:12 +0000 (21:07 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 11 Feb 2007 06:48:18 +0000 (22:48 -0800)
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 <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl

index 8ebaae9ff8865ab638f7a2db8c64f2d22f227470..d792a62d7ca400145d57189b5ca8af97978fef4d 100755 (executable)
@@ -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;
                        }
                }