* git pull origin doesn't update the master
@ 2006-04-10 4:41 Aneesh Kumar
2006-04-10 4:51 ` Aneesh Kumar
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Aneesh Kumar @ 2006-04-10 4:41 UTC (permalink / raw)
To: Git Mailing List, Junio C Hamano
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
and git-fetch.sh exit with status 1 printing the below message
* refs/heads/pu: does not fast forward to branch 'pu' of
http://git.kernel.org/pub/scm/git/git;
not updating.
-aneesh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git pull origin doesn't update the master
2006-04-10 4:41 git pull origin doesn't update the master Aneesh Kumar
@ 2006-04-10 4:51 ` Aneesh Kumar
[not found] ` <20060410010316.2aec94ae.seanlkml@sympatico.ca>
2006-04-10 6:29 ` Junio C Hamano
2 siblings, 0 replies; 6+ messages in thread
From: Aneesh Kumar @ 2006-04-10 4:51 UTC (permalink / raw)
To: Git Mailing List, Junio C Hamano
On 4/10/06, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:
> 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
>
> and git-fetch.sh exit with status 1 printing the below message
>
> * refs/heads/pu: does not fast forward to branch 'pu' of
> http://git.kernel.org/pub/scm/git/git;
> not updating.
>
>
I think the git-update-server-info is not run on kernel.org. I am
using the http fetch
562036a04223709de4922873238462007bcb529f refs/heads/pu
$ more pu
c52d221ba03c84e0b818d19f7ec30cb4d75fe509
$
-aneesh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git pull origin doesn't update the master
[not found] ` <20060410010316.2aec94ae.seanlkml@sympatico.ca>
@ 2006-04-10 5:03 ` sean
0 siblings, 0 replies; 6+ messages in thread
From: sean @ 2006-04-10 5:03 UTC (permalink / raw)
To: Aneesh Kumar; +Cc: git, junkio
On Mon, 10 Apr 2006 10:11:05 +0530
"Aneesh Kumar" <aneesh.kumar@gmail.com> wrote:
> 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
>
> and git-fetch.sh exit with status 1 printing the below message
>
> * refs/heads/pu: does not fast forward to branch 'pu' of
> http://git.kernel.org/pub/scm/git/git;
> not updating.
>
The "pu" branch often won't fast forward because some commits have
been completely deleted in it since the last time you pulled.
If you want to track it, add a plus (+) sign to the proper line in
your .git/remotes/origin file, like this:
Pull: +refs/heads/pu:refs/heads/pu
Which tells git to deal with the problem for you by merging instead
of fast forwarding. Or you can just delete that line completely
if you don't want to track the pu branch at all.
HTH,
Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git pull origin doesn't update the master
2006-04-10 4:41 git pull origin doesn't update the master Aneesh Kumar
2006-04-10 4:51 ` Aneesh Kumar
[not found] ` <20060410010316.2aec94ae.seanlkml@sympatico.ca>
@ 2006-04-10 6:29 ` Junio C Hamano
2006-04-10 6:45 ` Aneesh Kumar
2 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2006-04-10 6:29 UTC (permalink / raw)
To: Aneesh Kumar; +Cc: git
"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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git pull origin doesn't update the master
2006-04-10 6:29 ` Junio C Hamano
@ 2006-04-10 6:45 ` Aneesh Kumar
2006-04-10 7:24 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Aneesh Kumar @ 2006-04-10 6:45 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On 4/10/06, Junio C Hamano <junkio@cox.net> wrote:
> "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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git pull origin doesn't update the master
2006-04-10 6:45 ` Aneesh Kumar
@ 2006-04-10 7:24 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2006-04-10 7:24 UTC (permalink / raw)
To: Aneesh Kumar; +Cc: git
"Aneesh Kumar" <aneesh.kumar@gmail.com> writes:
> 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.
What you are saying is that the previous round did a wrong thing
without telling the user, and it just happened that you did not
care about the wrong thing it did.
It is a gentle reminder that heads that are rewound need to be
advertised as such. It is conceivable that in future versions
of git we might want to be able to mark some branches "this is
expected to be rewound" explicitly and make the clone operation
to take notice, to give you the plus sign automatically.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-10 7:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 4:41 git pull origin doesn't update the master Aneesh Kumar
2006-04-10 4:51 ` Aneesh Kumar
[not found] ` <20060410010316.2aec94ae.seanlkml@sympatico.ca>
2006-04-10 5:03 ` sean
2006-04-10 6:29 ` Junio C Hamano
2006-04-10 6:45 ` Aneesh Kumar
2006-04-10 7:24 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox