mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 08:31:14 -07:00
Co-authored-by: Vishvananda Abrams <vabrams@google.com>
This commit is contained in:
committed by
GitHub
parent
85bc25a765
commit
78b10dccf1
@@ -245,4 +245,15 @@ describe('GitService', () => {
|
||||
expect(hoistedMockCommit).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe('createFileSnapshot', () => {
|
||||
it('should commit with --no-verify flag', async () => {
|
||||
const service = new GitService(projectRoot, storage);
|
||||
await service.initialize();
|
||||
await service.createFileSnapshot('test commit');
|
||||
expect(hoistedMockCommit).toHaveBeenCalledWith('test commit', {
|
||||
'--no-verify': null,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -112,7 +112,9 @@ export class GitService {
|
||||
try {
|
||||
const repo = this.shadowGitRepository;
|
||||
await repo.add('.');
|
||||
const commitResult = await repo.commit(message);
|
||||
const commitResult = await repo.commit(message, {
|
||||
'--no-verify': null,
|
||||
});
|
||||
return commitResult.commit;
|
||||
} catch (error) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user