gem-src icon indicating copy to clipboard operation
gem-src copied to clipboard

Overwrite ~/.rbenv/.git/config after cloning repos

Open sinsoku opened this issue 8 years ago • 0 comments

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

sinsoku avatar May 08 '17 15:05 sinsoku