Thanks for your contribution.
To help maintenance, it would be great to see a doc-string here which informs about how find_git_dir works, and what it returns.