Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

list-dangling-repos: are we there yet?

<sigh>First I forgot @groups that may contain repos and patterns, then I
forgot patterns where the CREATOR token is used (this is the fix here).
  • Loading branch information...
commit 5aef1adc7b47e8c9145d912c76ad15737a5fd34b 1 parent 1fefb1c
@sitaramc authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/commands/list-dangling-repos
View
4 src/commands/list-dangling-repos
@@ -4,6 +4,7 @@ use warnings;
use lib $ENV{GL_LIBDIR};
use Gitolite::Common;
+use Gitolite::Conf::Load;
=for usage
Usage: gitolite list-dangling-repos
@@ -40,8 +41,9 @@ for my $pr (keys %phy_repos) {
# Remove regex matches.
for my $pr (keys %phy_repos) {
my $matched = 0;
+ my $pr2 = Gitolite::Conf::Load::generic_name($pr);
for my $r (keys %repos) {
- if ($pr =~ /^$r$/) {
+ if ($pr =~ /^$r$/ or $pr2 =~ /^$r$/) {
$matched = 1;
next;
}
Please sign in to comment.
Something went wrong with that request. Please try again.