summaryrefslogtreecommitdiff
path: root/perl5
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-02 22:52:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-03 07:17:42 -0700
commit5dc791ef48558f6d1a4b7074aaef0f0a97aa8089 (patch)
tree558f790402e0bbe7c402a034896ab34b4bd289d2 /perl5
parente0fa1459ab8c0f186269d2c02e000b3a3f2709c6 (diff)
downloaddotfiles-5dc791ef48558f6d1a4b7074aaef0f0a97aa8089.tar.gz
personal nmbug setup
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);