git-commit-notifier/git-commit-notifier — pull request #165 by stanhu (2012-09-19 16:41:23+00:00)
Title: Additional fix to issue #161: handle bare repository case

In a bare repository, git rev-parse --show-toplevel is empty.

In a non-bare repository, git rev-parse --git-dir returns the .git dir.

While the initial fixed the non-bare case, it broke the bare repository case. Now if we don't get a toplevel dir, attempt to use the git-dir.