Skip to content

Additional fix to issue #161: handle bare repository case #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2012

Conversation

stanhu
Copy link

@stanhu stanhu commented Sep 19, 2012

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.

akzhan added a commit that referenced this pull request Sep 19, 2012
Additional fix to issue #161: handle bare repository case
@akzhan akzhan merged commit b083621 into git-commit-notifier:master Sep 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants