From: Junio C Hamano <hidden> Date: 2016-06-15 22:42:03
Linus Torvalds [off-list ref] writes:
I've lost that state. Can you explain a bit mroe..
Sorry, you have not lost anything. It is my bad that this is
the first time I brought it up. I've been seeing that from time
to time when I push to either my "send to master" repository
from my working repository, or from the "send to master"
repository to master.kernel.org, but I haven't figured it out if
there is any pattern. It's one of those "I'll try to take a
snapshot so I can have a reproduction recipe to figure it out
next time it happens" things. Unfortunately, when it happens
against master.kernel.org, I have more urgent task of making
sure that the public repository is not in any way corrupted, and
after fixing that (it typically takes removing the
git.git/refs/{master,pu} and repushing, which recovers fine), I
do not have much to start trying to reproduce it anymore X-<.
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:42:03
Hi,
On Wed, 3 Aug 2005, Junio C Hamano wrote:
Sorry, you have not lost anything. It is my bad that this is
the first time I brought it up. I've been seeing that from time
to time when I push to either my "send to master" repository
from my working repository, or from the "send to master"
repository to master.kernel.org, but I haven't figured it out if
there is any pattern.
This could be related to what I was realizing the other day: when trying
to push to a repository (just one branch), but I do not have _all_ of the
remote branches pulled, then it fails.
Ciao,
Dscho
I've lost that state. Can you explain a bit mroe..
Sorry, you have not lost anything. It is my bad that this is
the first time I brought it up. I've been seeing that from time
to time when I push to either my "send to master" repository
from my working repository, or from the "send to master"
repository to master.kernel.org, but I haven't figured it out if
there is any pattern.
Are you sure you have a good git version on master? I've never seen
anything like that, and I push all the time..
Linus
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:42:03
Hi,
On Wed, 3 Aug 2005, Linus Torvalds wrote:
Are you sure you have a good git version on master? I've never seen
anything like that, and I push all the time..
Call him Zaphod: he has two heads (master and pu). You don't. As I said in
another mail, this could be very well related to Junio's problems.
Ciao,
Dscho
From: Josef Weidendorfer <hidden> Date: 2016-06-15 22:42:03
On Wednesday 03 August 2005 18:50, you wrote:
Hi,
On Wed, 3 Aug 2005, Linus Torvalds wrote:
quoted
Are you sure you have a good git version on master? I've never seen
anything like that, and I push all the time..
Call him Zaphod: he has two heads (master and pu). You don't. As I said in
another mail, this could be very well related to Junio's problems.
Yes it is. To reproduce:
Create a repository with 2 branches.
Make 2 clones of the 2 branches via SSH.
Make a commit on one clone and push.
Make another commit on the other clone and push => ERROR
A log of this last push:
=============================================
~/tmp/git/clone2> cg-push
'refs/heads/branch2': updating from 80e4d426dd4c865b943cc1121b580a946eee921d
to 8196067677e3415ce404ea5bc35731ac7d56115d
fatal: bad object f7e944b036fd00af656b262140c1dc93ceffadb1
Packing 0 objects
Unpacking 0 objects
fatal: unpack should have generated 8196067677e3415ce404ea5bc35731ac7d56115d,
but I can't find it!
=============================================
f7e9... is the commit pushed from the first clone.
I had the same problem yesterday.
Josef
From: Josef Weidendorfer <hidden> Date: 2016-06-15 22:42:03
On Wednesday 03 August 2005 19:08, you wrote:
Yes it is. To reproduce:
You do not need 2 clones.
It is enough to have one clone with a branch, and you make a commit in the
original repository.
Afterwards, pushing a new commit from the clone gives the error.
After pulling the missing commit from the original rep, the push works.
Josef
Yes it is. To reproduce:
Create a repository with 2 branches.
Make 2 clones of the 2 branches via SSH.
Make a commit on one clone and push.
Make another commit on the other clone and push => ERROR
This works perfectly fine, you just have to make sure that you update the
right head.
If you try to update a head that is ahead of you, that is driver error.
Admittedly one that could have nicer error messages ;)
This is why git-send-pack takes the name of the branch to update..
The real problem with git-send-pack is that the local and remote names
have to be the same, which is a bug, really. It _should_ be perfectly fine
to do something like
git-send-pack ..dest.. localname:remotename
which would push the local "localname" branch to the remote "remotename"
branch.
Linus