From 1c1ae6061d0e8e1b63cb6c0f18640b0d3c0d370f Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 6 Feb 2011 06:56:19 +0530 Subject: [PATCH] "git config foo.bar = 0" was not working; fixed (because perl treats 0 as false and I'd not accounted for that) thanks to idl0r for catching this --- src/gitolite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index e2f24f4..7861203 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -388,7 +388,7 @@ sub setup_git_configs my ($repo, $git_configs_p) = @_; while ( my ($key, $value) = each(%{ $git_configs_p->{$repo} }) ) { - if ($value) { + if ($value ne "") { $value =~ s/^"(.*)"$/$1/; system("git", "config", $key, $value); } else {