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:
6
Makefile
6
Makefile
@@ -29,7 +29,5 @@ make-update:
|
|||||||
.PHONY: make-push
|
.PHONY: make-push
|
||||||
make-push: warning
|
make-push: warning
|
||||||
@make make-update
|
@make make-update
|
||||||
@git remote add common git@gitlab.ducoterra.net:services/common.git
|
@git subtree split --branch common/$(PROJECT_NAME) --prefix .gitlab
|
||||||
@git subtree push --prefix .gitlab common main
|
@git push common common/$(PROJECT_NAME):common/$(PROJECT_NAME)
|
||||||
@git remote remove common
|
|
||||||
@make make-update
|
|
||||||
|
|||||||
Reference in New Issue
Block a user