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

Clone through proxy #512

Closed
Amnesthesia opened this issue Jan 18, 2021 · 2 comments
Closed

Clone through proxy #512

Amnesthesia opened this issue Jan 18, 2021 · 2 comments

Comments

@Amnesthesia
Copy link

Your environment

  • Git 2.18.4
  • ruby-git 1.7.0
  • ruby 2.6.0

Steps to reproduce

No option to set proxy, setting ENV["HTTP_PROXY"] doesn't help, and .config options seem to not be possible to set before cloning

Expected behaviour

Would love to be able to pass a proxy: "" option to .clone

Actual behaviour

execution expired

@sbernhard
Copy link

Workaround:

    git = Git.init(dir)
    git.config('http.proxy', proxy_setting)
    git.add_remote('origin', git_url)
    git.fetch
    git.checkout(git_commit)

@stale
Copy link

stale bot commented Jan 9, 2022

A friendly reminder that this issue had no activity for 60 days.

@stale stale bot added the stale label Jan 9, 2022
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

No branches or pull requests

2 participants