dynamist / subgit

Sub-git repo handler
Apache License 2.0
0 stars 0 forks source link

feature - allow defining path for clone point #2

Closed rholmboe closed 1 year ago

rholmboe commented 4 years ago

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.

holmboe commented 2 years ago

I think this feature is invalid since sgit repo subcommand was removed in #27 ?

Grokzen commented 2 years ago

@holmboe The feature per say can still be applied but the part where we do this from the cli should be removed and replaced with just defining this within the configuration file instead.

Grokzen commented 1 year ago

Closing this in favor of the rewritten task #7