subgit

Simple git-submodule alternative with versioning and multiple remotes
git clone https://git.sinitax.com/sinitax/subgit
Log | Files | Refs | sfeed.txt

commit f29303942ad96989f88f4a91be0f1d60b38f42e6
parent 386f01da2126f80ec1db85430da27d595a466a5f
Author: Louis Burda <quent.burda@gmail.com>
Date:   Fri, 10 May 2024 02:00:55 +0200

Remove existing subgit on clone

Diffstat:
Msubgit-clone | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/subgit-clone b/subgit-clone @@ -22,6 +22,7 @@ git clone "$@" [ ! -e "$repo/$subrepo" ] && die "Subrepo $subrepo missing" mkdir -p $(dirname "$repo/.subgit/$subrepo") +rm -rf "$repo/.subgit/$subrepo" mv "$repo/$subrepo/.git" "$repo/.subgit/$subrepo" subgit[$subrepo]=1