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
Probe thinks my repo_root is my home directory #9
Comments
It used to look for |
torbiak
added a commit
that referenced
this issue
Dec 15, 2015
globpath() returns a newline-separated string of paths, so it isn't clear why a word boundary was being searched for. fixes #9
Cool, thanks! |
campbellr
added a commit
to campbellr/probe
that referenced
this issue
May 13, 2016
In the fix for torbiak#9, `metadir_pattern` was changed to include a newline, but that newline was never stripped off before returning it. So instead of `s:find_metadir` returning something like `path/to/.git`, it returned `path/to/.git\n` which broke the check in `s:branch`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run
:Probe
outside of a vcs repository (but under my home directory) it ends up scanning everything under~/
instead of just under my current working directory (like i would have expected).After some digging, it looks like this is because I have file (
/home/ryan/.bzr.log
) that is accidentally getting matched againstmetadir_pattern
(\v/\.(git|hg|svn|bzr)>
).If i understand vim patterns (which i don't),
>
matches the end of a word, which doesn't include periodsI made the following change that seems to work:
I'd submit this as a pull request if i was more confident that this change doesn't break something else...
The text was updated successfully, but these errors were encountered: