summaryrefslogtreecommitdiff
path: root/perl5
diff options
context:
space:
mode:
Diffstat (limited to 'perl5')
-rw-r--r--perl5/Local/MrRepo.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl5/Local/MrRepo.pm b/perl5/Local/MrRepo.pm
index c5aa7cfe..36ef819d 100644
--- a/perl5/Local/MrRepo.pm
+++ b/perl5/Local/MrRepo.pm
@@ -76,6 +76,12 @@ BEGIN {
sub new_repo {
my $dir = shift;
+ # This matches git_test in mr(1). That means we don't count bare
+ # repos, and we're relying on that atm, because ~/lib/nmbug-*
+ # should be checked using their custom `mr checkout` commands. Maybe
+ # we should instead be seeing whether `mr config $dir checkout`
+ # matches /^git clone/, but that means disagreeing with mr(1)
+ # about which repos are git repos.
if ($have_mrrepo_git && -d catfile($dir, ".git")) {
if (has_annex_objects($dir)) {
return Local::MrRepo::Repo::Git::Annex->new($dir);