summaryrefslogtreecommitdiff
path: root/src
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 /src
parentb79494923b6f7780a8409472da5ce01897846518 (diff)
don't 'fatal' when a non-bare repo is thrown in!
see https://groups.google.com/forum/#!topic/gitolite/O7lKFU2okl8
Diffstat (limited to 'src')
-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 );