mirror of
https://github.com/actions/checkout.git
synced 2025-12-19 16:48:26 +00:00
Add ability to configure core.longpaths
This commit is contained in:
@@ -174,6 +174,18 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||
}
|
||||
core.endGroup()
|
||||
|
||||
if (settings.longpaths) {
|
||||
core.startGroup('Setting core.longpaths to true')
|
||||
await git
|
||||
.config('core.longpaths', 'true', false, false)
|
||||
.catch(error => {
|
||||
core.warning(
|
||||
`Failed to set core.longpaths with error: ${error}`
|
||||
)
|
||||
})
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
// Checkout info
|
||||
core.startGroup('Determining the checkout info')
|
||||
const checkoutInfo = await refHelper.getCheckoutInfo(
|
||||
|
||||
Reference in New Issue
Block a user