pre-existing repo instructions were WRONG...

- fix them
  - but (at the cost of some efficiency) try to compensate if the admin
    did not follow those instructions, by running hook_1 anyway
This commit is contained in:
Sitaram Chamarty 2012-04-11 18:24:43 +05:30
parent 8c28fd2241
commit 4c5bb27739
4 changed files with 23 additions and 6 deletions

View file

@ -161,6 +161,9 @@ sub new_repos {
next unless $repo =~ $REPONAME_PATT; # skip repo patterns
next if $repo =~ m(^\@|EXTCMD/); # skip groups and fake repos
# use gl-conf as a sentinel
hook_1($repo) if -d "$repo.git" and not -f "$repo.git/gl-conf";
new_repo($repo) if not -d "$repo.git";
}
}