I have a rails project with Overcommit gem that runs as a hook on git commit. This works fine in the command line as Overcommit has been installed (homebrew, rbenv, gem install overcommit).
But when I commit through Magit it complains:
This repository contains hooks installed by Overcommit, but the `overcommit` gem is not installed.
Install it with `gem install overcommit`.
The normal process here on OSX at least is to install Homebrew so that you can install Rbenv so that you can control the Ruby version which overrides the base operating system version of Ruby. And then you can install the gem.
How can I run through this process for Magit?
Or
How can I install a dependency such as this in the shell that Magit uses?
​
I tried running through the process of installing Homebrew etc using the *magit-shell-command* but I get this message and cannot proceed:
run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
[1;34m==>[1;39m Checking for `sudo` access (which may request your password)...[0m
Password:
[1;34m==>[1;39m This script will install:[0m
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press [1;39mRETURN[0m/[1;39mENTER[0m to continue or any other key to abort:
Can anyone point me in the right direction?