you can't array-deref an undefined value!

This commit is contained in:
Sitaram Chamarty 2009-08-28 07:16:40 +05:30 committed by Sitaram Chamarty
parent 3161b0ac86
commit 491b3fac36

View file

@ -68,8 +68,8 @@ $perm = '+' if $ref =~ m(refs/tags/) and $oldsha ne ('0' x 40);
$perm = '+' if $ref =~ m(refs/heads/) and $oldsha ne $merge_base;
my @allowed_refs;
push @allowed_refs, @ { $repos{$ENV{GL_REPO}}{$perm}{$ENV{GL_USER}} };
push @allowed_refs, @ { $repos{$ENV{GL_REPO}}{$perm}{'@all'} };
push @allowed_refs, @ { $repos{$ENV{GL_REPO}}{$perm}{$ENV{GL_USER}} || [] };
push @allowed_refs, @ { $repos{$ENV{GL_REPO}}{$perm}{'@all'} || [] };
for my $refex (@allowed_refs)
# refex? sure -- a regex to match a ref against :)
{