diff options
author | Eric Wong <e@80x24.org> | 2021-03-28 09:01:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-28 23:01:36 +0000 |
commit | 73e17de5421d83bedbf84209585cf2408b9af1ce (patch) | |
tree | bd598ceb87e83c05508f633080784eee8819c0e4 /t | |
parent | c18c58eaeab19877d06146c365d300afdccc2a93 (diff) | |
download | public-inbox-73e17de5421d83bedbf84209585cf2408b9af1ce.tar.gz |
It's possible for a abbreviated OID to be resolved unambiguously to an email before we attempt to look at externals via xsearch; so provide a way for a user to force searching coderepos. If hints (--oid-a, --path-a, --path-b) are present, we'll assume --no-mail by default, otherwise we'll assume the user wants to look through mail for a matching blob.
Diffstat (limited to 't')
-rw-r--r-- | t/solver_git.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/solver_git.t b/t/solver_git.t index 22714ae5..7bf3ba21 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -34,6 +34,9 @@ test_lei({tmpdir => $tmpdir}, sub { lei_ok('blob', '69df7d5', '-I', $ibx->{inboxdir}); is(sha1_hex("blob ".length($lei_out)."\0".$lei_out), $expect, 'blob contents output'); + my $prev = $lei_out; + lei_ok(qw(blob --no-mail 69df7d5 -I), $ibx->{inboxdir}); + is($lei_out, $prev, '--no-mail works'); # fallbacks lei_ok('blob', $v1_0_0_tag, '-I', $ibx->{inboxdir}); |