I have a bash script which needs to be run by the user from the root folder of a specific git repository.

I have found information of how I can check if I am in the root folder of the git.
But is there a way to in the script check that it has been run from the root folder of the *correct* git, and not some other git?

Users of this script usually tends to rename the git when cloning so I cannot check the root folder name.

E.g. `git clone https://git-server.com/gitname someothergitname`