mirror of
https://code.forgejo.org/actions/checkout.git
synced 2024-11-27 14:39:16 +01:00
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 #424
This commit is contained in:
parent
fbc745150c
commit
b9935aab1f
1 changed files with 4 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -7589,8 +7589,10 @@ class GitAuthHelper {
|
||||||
core.warning(`Failed to remove '${configKey}' from the git config`);
|
core.warning(`Failed to remove '${configKey}' from the git config`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.settings.submodules) {
|
||||||
const pattern = regexpHelper.escape(configKey);
|
const pattern = regexpHelper.escape(configKey);
|
||||||
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
|
yield this.git.submoduleForeach(`git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`, true);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue