Skip to content
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

Search parent directories for .git dir #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

banzera
Copy link

@banzera banzera commented Aug 22, 2014

I ran into the issue described in #113 today. While I like the rev-parse idea and have seen that implemented in other places, I just opted to search parent directories until I find a .git directory within one.

To keep the tests passing, I had to modify them to use a different sandbox directory--one not parented by the project, otherwise the recursive parent calls would pick up the maven-git-command-id-plugin's git directory mistakenly.

This is working great for me now, but I welcome feedback.

@ktoso
Copy link
Collaborator

ktoso commented Aug 22, 2014

I'll have a look tonight! Thanks for contributing :)

@ktoso ktoso self-assigned this Aug 22, 2014
@ktoso ktoso force-pushed the master branch 7 times, most recently from 97e085d to 7ee11ec Compare October 21, 2014 22:05
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