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

Check cloneable by git

Open sachin21 opened this issue 8 years ago • 0 comments

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 so I want to check it is git url before execute git clone #{repository}.

Actual behaviour

$ gem i bundler
Fetching: bundler-1.16.1.gem (100%)
     clone http://bundler.io -> /home/sachin21dev/Projects/bundler.io
        hg identify http://bundler.io
       git ls-remote http://bundler.io
       svn info http://bundler.io
     error Could not find version control system: http://bundler.io
     clone http://github.com/bundler/bundler/ -> /home/sachin21dev/Projects/github.com/bundler/bundler
       git clone http://github.com/bundler/bundler/ /home/sachin21dev/Projects/github.com/bundler/bundler
Cloning into '/home/sachin21dev/Projects/github.com/bundler/bundler'...
warning: redirecting to https://github.com/bundler/bundler/
remote: Counting objects: 75095, done.
remote: Total 75095 (delta 0), reused 0 (delta 0), pack-reused 75095
Receiving objects: 100% (75095/75095), 32.94 MiB | 5.83 MiB/s, done.
Resolving deltas: 100% (48231/48231), done.
Successfully installed bundler-1.16.1
1 gem installed

Expected behaviour

$ gem i bundler
Fetching: bundler-1.16.1.gem (100%)
     clone http://github.com/bundler/bundler/ -> /home/sachin21dev/Projects/github.com/bundler/bundler
       git clone http://github.com/bundler/bundler/ /home/sachin21dev/Projects/github.com/bundler/bundler
Cloning into '/home/sachin21dev/Projects/github.com/bundler/bundler'...
warning: redirecting to https://github.com/bundler/bundler/
remote: Counting objects: 75095, done.
remote: Total 75095 (delta 0), reused 0 (delta 0), pack-reused 75095
Receiving objects: 100% (75095/75095), 32.94 MiB | 8.74 MiB/s, done.
Resolving deltas: 100% (48231/48231), done.
Successfully installed bundler-1.16.1
1 gem installed

sachin21 avatar Jan 01 '18 14:01 sachin21