Skip to content

Commit b9935aa

Browse files
cosimokaidokert
authored andcommitted
Tried to fix the "unstaged changes" test failure
Error: Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run format && npm run build Error: Process completed with exit code 1. Rebased PR from actions#424
1 parent fbc7451 commit b9935aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7589,8 +7589,10 @@ class GitAuthHelper {
75897589
core.warning(`Failed to remove '${configKey}' from the git config`);
75907590
}
75917591
}
7592-
const pattern = regexpHelper.escape(configKey);
7593-
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
7592+
if (this.settings.submodules) {
7593+
const pattern = regexpHelper.escape(configKey);
7594+
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
7595+
}
75947596
});
75957597
}
75967598
}

0 commit comments

Comments
 (0)