We parse cgitrc for "repo.path", while we use "coderepo.dir" to
mean the same thing for non-cgit users. So I ended up confusing
myself, here.
But then again, git uses "--git-dir" and "GIT_DIR", so I suspect
"dir" is the better choice than "path", here
chomp;
if (m!\Arepo\.url=(.+?)/*\z!) {
my $nick = $1;
- cgit_repo_merge($self, $repo->{path}, $repo) if $repo;
+ cgit_repo_merge($self, $repo->{dir}, $repo) if $repo;
$repo = { url => $nick };
} elsif (m!\Arepo\.path=(.+)\z!) {
if (defined $repo) {
- $repo->{path} = $1;
+ $repo->{dir} = $1;
} else {
warn "$_ without repo.url\n";
}
$self->{-cgit_static}->{$1} = 1;
}
}
- cgit_repo_merge($self, $repo->{path}, $repo) if $repo;
+ cgit_repo_merge($self, $repo->{dir}, $repo) if $repo;
}
# parse a code repo