Skip to content

Shallow clone? #269

@ghost

Description

hi!

I am using GitPython for a personal project and I want to clone repositories on behalf of user but this takes very long time if repos are huge. I am unable to shallow clone because the -- chars are removed when I run the clone method.

GitCommandError: 'git clone --depth 1 https://github.com/scrollback/argent.git' returned with exit code 129
stderr: 'error: unknown option `depth 1 https://github.com/scrollback/argent.git'

What is a workaround for this?
Thanks!

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