diff --git a/Makefile b/Makefile index e15264e19..e0796c6b0 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ gh-publish-only: rsync -a $(BUILDDIR)/.* . git add `(cd $(BUILDDIR); find . -type f; cd ..)` rm -rf $(GH_SOURCE_DIR) $(BUILDDIR) - git commit -m "Generated $(GH_PUBLISH_BRANCH) for `git log $(GH_SOURCE_BRANCH) -1 --pretty=short --abbrev-commit`" && git push $(GH_UPSTREAM_REPO) $(GH_PUBLISH_BRANCH) + git commit -m "Generated $(GH_PUBLISH_BRANCH) for `git log $(GH_SOURCE_BRANCH) -1 --pretty=short --abbrev-commit`" && git push --force $(GH_UPSTREAM_REPO) $(GH_PUBLISH_BRANCH) git checkout $(GH_SOURCE_BRANCH) gh-publish: