diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-03 20:56:15 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-03 21:02:21 +0000 |
commit | defb6d12f5b7b63a8e95a2db2d1dff2bd8f9d83c (patch) | |
tree | 6c8bcba5f6a34b9d717bbcfd2aa63de447a32917 /t/v2writable.t | |
parent | 30a72ab33290a9ce57955bbd0799e394feab91ea (diff) | |
download | public-inbox-defb6d12f5b7b63a8e95a2db2d1dff2bd8f9d83c.tar.gz |
We'll let the config of all.git dictate every other subrepo to ease maintenance and configuration. The "include" directive has been supported since git 1.7.10, so it's safe to depend on as v2 requires git 2.6.0+ anyways for "get-mark" in fast-import.
Diffstat (limited to 't/v2writable.t')
-rw-r--r-- | t/v2writable.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/v2writable.t b/t/v2writable.t index bf8ae5e6..2d35aca3 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -32,6 +32,22 @@ my $mime = PublicInbox::MIME->create( my $im = PublicInbox::V2Writable->new($ibx, 1); ok($im->add($mime), 'ordinary message added'); + +if ('ensure git configs are correct') { + my @cmd = (qw(git config), "--file=$mainrepo/all.git/config", + qw(core.sharedRepository 0644)); + is(system(@cmd), 0, "set sharedRepository in all.git"); + my $git0 = PublicInbox::Git->new("$mainrepo/git/0.git"); + my $fh = $git0->popen(qw(config core.sharedRepository)); + my $v = eval { local $/; <$fh> }; + chomp $v; + is($v, '0644', 'child repo inherited core.sharedRepository'); + $fh = $git0->popen(qw(config --bool repack.writeBitmaps)); + $v = eval { local $/; <$fh> }; + chomp $v; + is($v, 'true', 'child repo inherited repack.writeBitmaps'); +} + { my @warn; local $SIG{__WARN__} = sub { push @warn, @_ }; |