fix: better handling of gitignore (once)

This commit is contained in:
2026-02-16 11:29:59 +01:00
parent 4695570c34
commit 4c437cbea2
4 changed files with 7 additions and 7 deletions

View File

@@ -294,8 +294,8 @@ describe('GitEngine', () => {
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.tiff']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.bmp']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.ico']);
expect(mockAdd).toHaveBeenNthCalledWith(1, ['posts', 'media', 'meta', '.gitattributes']);
expect(mockAdd).toHaveBeenNthCalledWith(2, ['--renormalize', 'posts', 'media', 'meta', '.gitattributes']);
expect(mockAdd).toHaveBeenNthCalledWith(1, ['posts', 'media', 'meta', 'thumbnails', '.gitattributes', '.gitignore']);
expect(mockAdd).toHaveBeenNthCalledWith(2, ['--renormalize', 'posts', 'media', 'meta', 'thumbnails', '.gitattributes', '.gitignore']);
expect(mockCommit).toHaveBeenCalledWith('initial commit');
expect(mockAddRemote).not.toHaveBeenCalled();
});