Skip to content

Check cloneable by git#22

Open
sachin21 wants to merge 1 commit intoamatsuda:masterfrom
sachin21:check_cloneable_by_git
Open

Check cloneable by git#22
sachin21 wants to merge 1 commit intoamatsuda:masterfrom
sachin21:check_cloneable_by_git

Conversation

@sachin21
Copy link
Copy Markdown

@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
@sachin21 sachin21 force-pushed the check_cloneable_by_git branch from 2bdfc81 to 76eb46b Compare January 13, 2018 19:18
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}`.
@sachin21 sachin21 force-pushed the check_cloneable_by_git branch from 76eb46b to ac83493 Compare November 1, 2019 05:06
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