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

How to pass customer params to git clone? #499

Open
RoxKilly opened this issue Jul 5, 2024 · 0 comments
Open

How to pass customer params to git clone? #499

RoxKilly opened this issue Jul 5, 2024 · 0 comments

Comments

@RoxKilly
Copy link

RoxKilly commented Jul 5, 2024

Suppose I'm trying to download a repo using the GitGetter:

git::https://github.acme.com/team/repo

Under the hood, something like this gets executed:

git clone https://github.acme.com/team/repo /tmp/dir

The server expects me to send some extra headers. From my shell I can clone with:

git clone -c http.extraHeader='header: val' https://github.acme.com/team/repo /tmp/dir

What is the idiomatic to pass extra args to git clone (source code)?

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

1 participant