Re: git pull origin doesn't update the master
- From
Aneesh Kumar <aneesh.kumar@gmail.com>
- Date
- Apr 10, 2006, 06:45 UTC
- Message-ID
- <cc723f590604092345r7d0e2cedr8f9838d054ecb023@mail.gmail.com>
- In-Reply-To
- <7vr7469c4n.fsf@assigned-by-dhcp.cox.net>
On 4/10/06, Junio C Hamano <junkio@cox.net> wrote:
Show 15 quoted lines
> "Aneesh Kumar" <aneesh.kumar@gmail.com> writes: > > > While updating the git code base the master branch is not getting > > updated. First look tell me that the below commit is the issue > > a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90 > > > > git-pull.sh does > > git-fetch --update-head-ok "$@" || exit 1 > > Yes, this was done as an response to an explicit request from > Andrew Morten. > > What Sean said about "pu" branch is correct. > >
Sean suggestion worked for me.
Work flow is now a bit complicated. I clone the repository. Now i need to edit remotes/origin to make sure what all branches i need to follow. And then do a git pull origin. Earlier i just need to do a clone and a git pull. I don't need to fast forward pu branch. But then i need to get the update of master branch. since git-fetch fails update pu branch git pull origin fails to update master branch also which i am really interested.
-aneesh