Skip to content
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

Check cloneable by git #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sachin21
Copy link

@sachin21 sachin21 commented Jan 1, 2018

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 sachin21 force-pushed the check_cloneable_by_git branch 2 times, most recently from 88e2a66 to 2bdfc81 Compare January 1, 2018 15:16
Case in 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}`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant