diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2016-09-08 20:41:44 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2016-09-08 21:42:08 +0530 |
commit | eb3f12f4d024937084ef52aecff82c390a4fa9c1 (patch) | |
tree | a9ea3fbb6ca454bf56d67b011dc10ff5807e0269 | |
parent | fix 'access' command behaviour for 'C' and 'D' perms (diff) | |
download | gitolite-gentoo-eb3f12f4d024937084ef52aecff82c390a4fa9c1.tar.gz gitolite-gentoo-eb3f12f4d024937084ef52aecff82c390a4fa9c1.tar.bz2 gitolite-gentoo-eb3f12f4d024937084ef52aecff82c390a4fa9c1.zip |
don't 'fatal' when a non-bare repo is thrown in!
see https://groups.google.com/forum/#!topic/gitolite/O7lKFU2okl8
-rw-r--r-- | src/lib/Gitolite/Common.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Gitolite/Common.pm b/src/lib/Gitolite/Common.pm index d59118c..166a4df 100644 --- a/src/lib/Gitolite/Common.pm +++ b/src/lib/Gitolite/Common.pm @@ -235,7 +235,8 @@ sub cleanup_conf_line { chomp($repo); $repo =~ s/\.git$//; $repo =~ s(^\./)(); - push @phy_repos, $repo; + push @phy_repos, $repo unless $repo =~ m(/$); + # tolerate bare repos within ~/repositories but silently ignore them } trace( 3, scalar(@phy_repos) . " physical repos found" ); return sort_u( \@phy_repos ); |