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
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user