Let Git tell us if we're in a repo

Allow git-update to be run from anywhere in a repository, rather than
only in the root of the repository where `.git/` exists.