Skip to content

How to pass customer params to git clone? #499

@RoxKilly

Description

@RoxKilly

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions