diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2013-10-29 11:31:39 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2013-10-29 11:36:14 +0530 |
commit | f8776f57b8abdf78fe82667259553f43fc8d4c21 (patch) | |
tree | d0055d9b949a435ce3a5df37b1f40634ec14222d | |
parent | oops; fa06a34 had a nasty bug for fresh installs (diff) | |
download | gitolite-gentoo-f8776f57b8abdf78fe82667259553f43fc8d4c21.tar.gz gitolite-gentoo-f8776f57b8abdf78fe82667259553f43fc8d4c21.tar.bz2 gitolite-gentoo-f8776f57b8abdf78fe82667259553f43fc8d4c21.zip |
allow repos to be created when only config entries present
specifically, 16f2d9b doesn't cut it. That only works when you migrated a
whole bunch of repos from elsewhere, gave them all access using @all or some
pattern, then give individual config lines to each.
In this case the repo doesn't even exist, so the same logic (of treating
config lines as equivalent to rule lines) must extend to the *creation* of a
repo.
-rw-r--r-- | src/lib/Gitolite/Conf/Store.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Gitolite/Conf/Store.pm b/src/lib/Gitolite/Conf/Store.pm index a5ffe9b..f5f9a66 100644 --- a/src/lib/Gitolite/Conf/Store.pm +++ b/src/lib/Gitolite/Conf/Store.pm @@ -175,7 +175,7 @@ sub new_repos { _chdir( $rc{GL_REPO_BASE} ); # normal repos - my @repos = grep { $_ =~ $REPONAME_PATT and not /^@/ } sort keys %repos; + my @repos = grep { $_ =~ $REPONAME_PATT and not /^@/ } ( sort keys %repos, sort keys %configs ); # add in members of repo groups map { push @repos, keys %{ $groups{$_} } } grep { /^@/ and $_ ne '@all' } keys %repos; |