From 6bdb5f22a0ee205c45d1f465a8b39179830a14cb Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 18 Jun 2009 15:49:56 +0200 Subject: [PATCH] Don't automatically merge from followed branch on git pull. Use branch.$(my-branch).follow instead of branch.$(my-branch).merge to record branch to follow and explicitly merge on make merge. --- fedora/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fedora/Makefile b/fedora/Makefile index 95b67f9d83..71012e2d4c 100644 --- a/fedora/Makefile +++ b/fedora/Makefile @@ -15,7 +15,7 @@ branchname = $(patsubst refs/heads/%,%,$1) my-branch := $(call branchname,$(call git,symbolic-ref,HEAD)) upstream-remote := $(call gitconf,branch.$(my-branch).remote) -upstream-branch := $(call branchname,$(call gitconf,branch.$(my-branch).merge)) +upstream-branch := $(call branchname,$(call gitconf,branch.$(my-branch).follow)) dep-my-branch := $(firstword $(wildcard ../.git/refs/heads/$(my-branch) \ ../.git/packed-refs)) @@ -30,7 +30,7 @@ ifeq (,$(branch)) @echo "Use '$(MAKE) follow branch=NAME'"; exit 2 else $(GIT) rev-parse --verify $(upstream-remote)/$(branch) - $(GIT) config branch.$(my-branch).merge $(branch) + $(GIT) config branch.$(my-branch).follow $(branch) @$(GIT) branch -v | grep "^. $(subst .,\\.,$(my-branch)) " endif @@ -39,6 +39,7 @@ endif # Then you follow up with editting, 'git add FILE...', and git commit. merge: $(GIT) pull + $(GIT) merge $(upstream-remote)/$(upstream-branch) describe-merge = describe --match 'glibc-*'