diff --git a/packages/server-core/src/projects/project/project-helper.ts b/packages/server-core/src/projects/project/project-helper.ts index ec25725b83..e6a879e259 100644 --- a/packages/server-core/src/projects/project/project-helper.ts +++ b/packages/server-core/src/projects/project/project-helper.ts @@ -546,11 +546,11 @@ export const checkProjectDestinationMatch = async ( return { sourceProjectMatchesDestination: true, projectName: sourceContent.name } const destinationManifest = destinationContent as ManifestJson - // if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase()) - // return { - // error: 'invalidRepoProjectName', - // text: 'The repository you are attempting to update from contains a different project than the one you are updating' - // } + if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase()) + return { + error: 'invalidRepoProjectName', + text: 'The repository you are attempting to update from contains a different project than the one you are updating' + } return { sourceProjectMatchesDestination: true, projectName: sourceContent.name } }