1 X_STATUS_GIT = https://git.ladys.computer/x_status_git.git
3 update: FIRST_COMMIT = $(shell git rev-list --max-parents=0 live)
6 @echo 'Type `make remote` to update the remote post-receive script.'
9 git remote add upstream $(X_STATUS_GIT)
11 git checkout --detach upstream/current
12 git reset --soft $(FIRST_COMMIT)
13 git commit --amend --no-edit
16 git rebase --onto base $(FIRST_COMMIT)
18 git remote remove upstream
21 git remote remove upstream || true
22 git tag --delete base || true
26 scp post-receive computer:/srv/git/Status/hooks/post-receive
28 .PHONY: nothing remote update clean ;