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

is_cwd_a_dot_git_directory:1: = not found #100

Closed
oryband opened this issue Jan 24, 2016 · 7 comments
Closed

is_cwd_a_dot_git_directory:1: = not found #100

oryband opened this issue Jan 24, 2016 · 7 comments

Comments

@oryband
Copy link

oryband commented Jan 24, 2016

Started getting this after updating. Happens when cding into a any dir in any git repo:

$ # i press enter
is_cwd_a_dot_git_directory:1: = not found  # gets printed before prompt shows up again
$

I have to turn git-radar off for now because of this :\ Any idea what's the cause?

@hallzy
Copy link
Contributor

hallzy commented Jan 24, 2016

Are you running zsh by chance?

I found this which looks like it gives a similar error because of the == in the new function that you referenced. I am unable to reproduce this problem using bash, so if it is a zsh specific thing, that could be why.

@hallzy
Copy link
Contributor

hallzy commented Jan 24, 2016

based on that link, it is possible that surrounding the == with single quotes like this '==' will resolve the problem. I quickly tried it with bash and it still seems to work.

Maybe you could try adding that and see if that works... If it does, then come back and let us know.

@oryband
Copy link
Author

oryband commented Jan 25, 2016

@hallzy ok i tried wrapping the equals in here

is_cwd_a_dot_git_directory() {
and it did the trick. i'l pr the fix in a minute

oryband added a commit to oryband/git-radar that referenced this issue Jan 25, 2016
wraps double equals `==` sign with quotes to be zsh compatible
@mriehl
Copy link

mriehl commented Feb 2, 2016

Is it possible to revert the zsh incompatible change until this issue is fixed? I use git-radar as a submodule and it's really a PITA that I cannot update it.

@michaeldfallen
Copy link
Owner

Issue fixed. Sorry this has been open so long, I've recently switch jobs and had a fair bit on my plate starting a company etc.

I'd like to explore the idea of opening collaborator access to a few people so git-radar isn't at my mercy alone. It seems that it's used widely enough that the users can't rely on me alone to keep it going (as evidenced by the number of open issues and pull requests).

@michaeldfallen
Copy link
Owner

closing as fixed

@mriehl
Copy link

mriehl commented Feb 3, 2016

👍 thanks for fixing and thank you very much for your ongoing work on git-radar!

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

No branches or pull requests

4 participants