Skip to content

feature - allow defining path for clone point #2

@rholmboe

Description

@rholmboe

would have the option of cloning objects in sgit to subfolder.

something like following

sgit repo add --path subfolder/ <name> <url> <rev>

where --path defaults to ./

if nestling repos is utilized, closest root folder should be cloned first

sgit repo add --path repo/ subrepo https://git.example.com/subrepo.git master
sgit repo add --path . repo https://git.example.com/repo.git master

in above case, repo.git should be cloned first, since subrepo.git is dependant on it path-wise locally.

non-allowed characters or paths should be /../ anywhere in the path, working outside initialized folder shouldn't be allowed.

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