]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't automatically merge from followed branch on git pull.
authorAndreas Schwab <aschwab@redhat.com>
Thu, 18 Jun 2009 13:49:56 +0000 (15:49 +0200)
committerAndreas Schwab <aschwab@redhat.com>
Thu, 18 Jun 2009 14:01:13 +0000 (16:01 +0200)
Use branch.$(my-branch).follow instead of branch.$(my-branch).merge to
record branch to follow and explicitly merge on make merge.

fedora/Makefile

index 95b67f9d83c022a1abab6c857b6f35497485617c..71012e2d4cda5038d89acfdc5bb49c4e5e8f02ca 100644 (file)
@@ -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-*'