use source mode for deleted files

This commit is contained in:
Peter Evans 2024-08-08 15:15:58 +00:00
parent b2a409b0a3
commit 6b1053d0d8
6 changed files with 132 additions and 13 deletions

View file

@ -270,7 +270,7 @@ describe('create-or-update-branch tests', () => {
expect(branchCommits[0].subject).toEqual('Test changes')
expect(branchCommits[0].changes.length).toEqual(3)
expect(branchCommits[0].changes).toEqual([
{mode: '000000', path: TRACKED_FILE, status: 'D'},
{mode: '100644', path: TRACKED_FILE, status: 'D'},
{mode: '100644', path: UNTRACKED_FILE, status: 'A'},
{mode: '100644', path: TRACKED_FILE_NEW_PATH, status: 'A'}
])