in_repository function

Determine if a directory is in a git repository