Skip to content
Snippets Groups Projects
Unverified Commit c4710fec authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(git): skip null contents additions which aren't directories (#13560)

parent e2238eee
No related branches found
No related tags found
No related merge requests found
...@@ -716,6 +716,9 @@ export async function commitFiles({ ...@@ -716,6 +716,9 @@ export async function commitFiles({
if (await isDirectory(upath.join(localDir, fileName))) { if (await isDirectory(upath.join(localDir, fileName))) {
// This is usually a git submodule update // This is usually a git submodule update
logger.trace({ fileName }, 'Adding directory commit'); logger.trace({ fileName }, 'Adding directory commit');
} else if (file.contents === null) {
// istanbul ignore next
continue;
} else { } else {
let contents: Buffer; let contents: Buffer;
// istanbul ignore else // istanbul ignore else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment