feat: enhance error handling for non-git directories (#1885)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -680,6 +680,12 @@ export const isInsideWorkTree = async ({
|
||||
}
|
||||
)
|
||||
|
||||
if (stdout.trim() !== 'true') {
|
||||
core.debug(
|
||||
`The current working directory is not inside a git repository: ${cwd}`
|
||||
)
|
||||
}
|
||||
|
||||
return stdout.trim() === 'true'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user