aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2016-09-08 20:41:44 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2016-09-08 21:42:08 +0530
commiteb3f12f4d024937084ef52aecff82c390a4fa9c1 (patch)
treea9ea3fbb6ca454bf56d67b011dc10ff5807e0269
parentfix 'access' command behaviour for 'C' and 'D' perms (diff)
downloadgitolite-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.pm3
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 );