Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
uncomment code used to bypas restriction for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Aug 18, 2024
1 parent 3fe2fd2 commit 57ddebb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/server-core/src/projects/project/project-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down

0 comments on commit 57ddebb

Please sign in to comment.