fix: better handling of gitignore (once)

This commit is contained in:
hugo committed 2026-02-16 11:29:59 +01:00
1 parent 4695570c34
commit 4c437cbea2
4 files changed
+7 -7

No files matched your search

+2 -2
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();
});