-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Strange syntax error in rbenv-version-file-read \w git-flow #222
Comments
+1 When I try something like:
I get:
|
At least in my case this is due to a post-checkout hook that calls |
It might be that your shells don't support process substitution. It's the only occurence of process substitution used in rbenv. I just changed it to use a simple pipeline. I'll submit a pull request. |
Sounds reasonable to me. Git flow uses |
Can you share with us your post-checkout hook that calls And sorry for not getting onto this until this late. Let's fix it if there's a bug! |
#!/bin/zsh
.git/hooks/ctags >/dev/null 2>&1 &
if [ $1 != 0000000000000000000000000000000000000000 ]; then
if command -v hookup >/dev/null; then
hookup post-checkout "$@"
elif [ $3 = 1 -a -f Gemfile ] && command -v bundle >/dev/null &&
git diff --name-only $1 $2 | egrep -q '^Gemfile|\.gemspec$'
then
(unset GIT_DIR; exec bundle) | grep -v '^Using ' | grep -v ' is complete'
true
fi
fi |
Can't reproduce this! Very strange |
Managed to reproduce, and filed as nvie/gitflow#289 There is no workaround apart from manually editing the |
I'm actually running into this exact issue myself. I have one git hook in my project, and I tried removing it, but for some reason it's still choking on
I generally run Zsh, but in the process of troubleshooting, I've also attempted this in bash, with the same result. |
@counterbeing Can't remember if I actually got it to run back then, but I'm using https://github.com/postmodern/chruby by now. :) Works very well. |
Thanks for the response! I really am fond of my current rbenv setup though, and don’t want to abandon. Thanks again!
|
I don't know, whetther it is rbenv of git-flow problem, but when I try to run
there is a problem, mentioning rbenv:
And periodically it causes git-flow commands to fail.
The text was updated successfully, but these errors were encountered: