mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 14:29:23 +00:00
Merge 44b7815b62 into ac59398561
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -9387,8 +9387,10 @@ function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref
|
||||
remove = true;
|
||||
}
|
||||
// Fetch URL does not match
|
||||
else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
|
||||
repositoryUrl !== (yield git.tryGetFetchUrl())) {
|
||||
else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git'))) {
|
||||
remove = clean;
|
||||
}
|
||||
else if (repositoryUrl !== (yield git.tryGetFetchUrl())) {
|
||||
remove = true;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user