Switch to "subtree split" push strategy

Split the subtree into a new branch before pushing to common. This
creates a new branch automatically and ensures no weird histories get
committed to common.
This commit is contained in:
ducoterra
2021-11-02 11:48:15 -04:00
parent 3c91292fea
commit c3e6d733c6

View File

@@ -29,7 +29,5 @@ make-update:
.PHONY: make-push
make-push: warning
@make make-update
@git remote add common git@gitlab.ducoterra.net:services/common.git
@git subtree push --prefix .gitlab common main
@git remote remove common
@make make-update
@git subtree split --branch common/$(PROJECT_NAME) --prefix .gitlab
@git push common common/$(PROJECT_NAME):common/$(PROJECT_NAME)