Find Repo Algorithm: 1. Check if you are inside a git repository, if you are get out. 2. search the given directory for sub directories with the same name as the repo. If the repo name matches, it checks if it is a repo, if it is, then the repo is found. 3. It checks for a file named "repos". If it exists it reads the file and searches to see if it contains the definition for the repo. 4. It goes through every parent directory checking the sub directories again for the repo name.
Checks to see if the given path is inside a git repo. It does this by checking for the '.git' directory in the given directory and every parent directory.