Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (19 loc) · 583 Bytes

004-git-clone.md

File metadata and controls

26 lines (19 loc) · 583 Bytes

Git Clone

London is working on a service that needs to mock out cloning git repositories.

To that end she generates a Routes file:

route {
  host = "github.com"
  path = "/example-repo"
  type = "git"
}

And initializes a git repository at /mocks/git/github.com/example-repo.

Now she can clone the fake git repository with http clones:

export http_proxy=http://squid.proxy:8888
export https_proxy=http://squid.proxy:8888

git clone https://github.com/example-repo --depth=1
### Cloning into 'example-repo'...
### Unpacking objects: 100% (3/3), done.