mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-17 13:44:32 +01:00
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:
1 parent
de5691d952
commit
ff14f14c63
4 files changed
+10
-4
No files matched your search
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user