fix: tree-only merge-base diff in the Version Gate; ls-tree --full-tree in both history readers

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-31 18:33:21 +00:00
1 parent de5691d952
commit ff14f14c63
4 files changed
+10 -4

No files matched your search

+4
View File
@@ -108,6 +108,10 @@ describe('history-read.sh and lib/history-read.ts on a blobless clone', () => {
expect(r.stderr).toBe('');
expect([r.status, r.stdout]).toEqual([0, '1.0.0.1\n']);
expect(readHistoryFile(fx.clone, fx.one, 'VERSION')).toBe('1.0.0.0\n');
const sub = path.join(fx.clone, 'sub');
fs.mkdirSync(sub);
expect(helper(sub, fx.one, POLICY)).toMatchObject({ status: 0, stdout: JSON.stringify({ bump: 'patch' }) });
expect(readHistoryFile(sub, fx.one, POLICY)).toBe(JSON.stringify({ bump: 'patch' }));
});
test('a path the tree does not list is absent even with the remote gone', () => {