forked from ungleich-public/cdist
fix git-branch-merge
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
ce27012d62
commit
d6d56043ce
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -187,9 +187,8 @@ $(GIT_TAG_FILE):
|
|||
@printf "Enter tag description for $(CHANGELOG_VERSION)> "
|
||||
@read tagmessage; git tag "$(CHANGELOG_VERSION)" -m "$$tagmessage"
|
||||
|
||||
#git-branch-merge: git-tag
|
||||
git-branch-merge:
|
||||
current=$$(git rev-parse --abbrev-ref HEAD) \
|
||||
current=$$(git rev-parse --abbrev-ref HEAD); \
|
||||
git checkout "$(GIT_DST_BRANCH)" && \
|
||||
git merge "$(GIT_SRC_BRANCH)" && \
|
||||
git checkout "$$current"
|
||||
|
@ -199,13 +198,15 @@ $(VERSION_FILE): .git/refs/heads/*
|
|||
echo "VERSION = \"$$(git describe)\"" > $@
|
||||
|
||||
# Pub is Nico's "push to all git remotes" thing
|
||||
# git-release is the better term
|
||||
git-release pub:
|
||||
pub:
|
||||
for remote in "" github sf; do \
|
||||
echo "Pushing to $$remote" \
|
||||
git push --mirror $$remote \
|
||||
done
|
||||
|
||||
git-release: git-tag git-branch-merge
|
||||
make pub
|
||||
|
||||
################################################################################
|
||||
# pypi
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue