gem-src
gem-src copied to clipboard
Gem.post_install { `git clone gem_source src` }
In my case, I am using ghq. gem-src many send requests to the hompage when execute `gem i bundler` but that is not url for git. It takes many time...
Probably the cause is as follows. 1. `rev-parse --is-inside-work-tree` return `true` in subdirectoires of rbenv. - https://github.com/amatsuda/gem-src/blob/v0.9.0/lib/rubygems_plugin.rb#L45 2. `remote_add_src_and_origin` add remotes to ~/.rbenv/.git/config when gem_dir not a repository. - https://github.com/amatsuda/gem-src/blob/v0.9.0/lib/rubygems_plugin.rb#L50
I think some repository is able to skip clone . how about do you think?
### Before this pull-req  ### After merged 