|
|
|
@ -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 {
|
|
|
|
|