mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-08-27 20:44:58 -04:00
Log Git initialization failures before REST fallback
This commit is contained in:
parent
f548e57e54
commit
56bf2cdaf6
3 changed files with 107 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -41957,6 +41957,8 @@ async function getGitCommandManager(settings) {
|
|||
return await createCommandManager(settings.repositoryPath, settings.lfs, settings.sparseCheckout != null);
|
||||
}
|
||||
catch (err) {
|
||||
const errorMessage = err instanceof Error ? err.message : String(err);
|
||||
info(`Failed to initialize CommandManager: ${errorMessage}`);
|
||||
// Git is required for LFS
|
||||
if (settings.lfs) {
|
||||
throw err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue