Skip to content

Commit

Permalink
Tried to fix the "unstaged changes" test failure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cosimo authored and kaidokert committed May 15, 2023
1 parent fbc7451 commit b9935aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Expand Up @@ -7589,8 +7589,10 @@ class GitAuthHelper {
core.warning(`Failed to remove '${configKey}' from the git config`);
}
}
const pattern = regexpHelper.escape(configKey);
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
if (this.settings.submodules) {
const pattern = regexpHelper.escape(configKey);
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
}
});
}
}
Expand Down

0 comments on commit b9935aa

Please sign in to comment.