* git-push sent too many objects
@ 2012-04-17 16:53 Mark Jason Dominus
2012-04-18 7:59 ` Shawn Pearce
0 siblings, 1 reply; 5+ messages in thread
From: Mark Jason Dominus @ 2012-04-17 16:53 UTC (permalink / raw)
To: git
I had a master ref, pointing to commit 231e284, which I branched to
make a "coupon" ref. My remote, "origin" had a copy of commit
231e284.
I modified one file and committed it on "coupon", yielding commit
03b6489. Then I pushed coupon to origin. I expected that git-push
would send about five objects, but instead it reported sending 1,315.
Command output is pasted at http://nopaste.info/a866bb00e0.html .
You can verify that:
1. I pushed only coupon, not any other ref.
2. origin already had a copy of coupon's predecessor commit, 231e284.
3. 03b6489 was identical to 231e284 except for changes in one file.
4. I was not doing anything obviously strange.
What happened here? Why did git-push send 1,315 objects instead of 5?
Mark Jason Dominus mjd@plover.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-push sent too many objects
2012-04-17 16:53 git-push sent too many objects Mark Jason Dominus
@ 2012-04-18 7:59 ` Shawn Pearce
2012-04-18 14:22 ` Mark Jason Dominus
0 siblings, 1 reply; 5+ messages in thread
From: Shawn Pearce @ 2012-04-18 7:59 UTC (permalink / raw)
To: Mark Jason Dominus; +Cc: git
On Tue, Apr 17, 2012 at 09:53, Mark Jason Dominus <mjd@plover.com> wrote:
>
> I had a master ref, pointing to commit 231e284, which I branched to
> make a "coupon" ref. My remote, "origin" had a copy of commit
> 231e284.
>
> I modified one file and committed it on "coupon", yielding commit
> 03b6489. Then I pushed coupon to origin. I expected that git-push
> would send about five objects, but instead it reported sending 1,315.
>
> Command output is pasted at http://nopaste.info/a866bb00e0.html .
> You can verify that:
>
> 1. I pushed only coupon, not any other ref.
> 2. origin already had a copy of coupon's predecessor commit, 231e284.
> 3. 03b6489 was identical to 231e284 except for changes in one file.
> 4. I was not doing anything obviously strange.
>
> What happened here? Why did git-push send 1,315 objects instead of 5?
Is it possible someone else modified the repository at the same time?
We see this happen when the remote no longer has a branch pointing
exactly at commit 231e284, because another user (or you in another
shell?) had pushed a new commit to that branch before you pushed this
new coupon branch. In these sorts of cases your Git client can't
accurately determine what the server has and does not have, so it errs
on the conservative side and sends a lot more than it probably needed
to.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-push sent too many objects
2012-04-18 7:59 ` Shawn Pearce
@ 2012-04-18 14:22 ` Mark Jason Dominus
2012-04-26 13:07 ` Jeff King
0 siblings, 1 reply; 5+ messages in thread
From: Mark Jason Dominus @ 2012-04-18 14:22 UTC (permalink / raw)
To: Shawn Pearce; +Cc: Mark Jason Dominus, git
Shawn Pearce:
> On Tue, Apr 17, 2012 at 09:53, Mark Jason Dominus <mjd@plover.com> wrote:
> > What happened here? =A0Why did git-push send 1,315 objects instead of 5?
>
> Is it possible someone else modified the repository at the same time?
It is extremely unlikely. This repository is controlled by gitolite
and I am the only person who has push access to it. Also, although my
paste doesn't show it, the repository's master reference had not
moved.
I should have mentioned my git version in my original message: it is
1.7.10.rc0.1.g6fd18 .
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-push sent too many objects
2012-04-18 14:22 ` Mark Jason Dominus
@ 2012-04-26 13:07 ` Jeff King
2012-04-27 0:41 ` Mark Jason Dominus
0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2012-04-26 13:07 UTC (permalink / raw)
To: Mark Jason Dominus; +Cc: Shawn Pearce, git
On Wed, Apr 18, 2012 at 10:22:26AM -0400, Mark Jason Dominus wrote:
> Shawn Pearce:
> > On Tue, Apr 17, 2012 at 09:53, Mark Jason Dominus <mjd@plover.com> wrote:
> > > What happened here? =A0Why did git-push send 1,315 objects instead of 5?
> >
> > Is it possible someone else modified the repository at the same time?
>
> It is extremely unlikely. This repository is controlled by gitolite
> and I am the only person who has push access to it. Also, although my
> paste doesn't show it, the repository's master reference had not
> moved.
Is the repository public? I can't reproduce the issue on a trivial test
case, but it might be possible to create the original state of the
client and server repos with judicious use of "reset" and "prune".
If we can get a reliable case, then running with GIT_TRACE_PACKET will
show the commit negotiation that we go through.
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-push sent too many objects
2012-04-26 13:07 ` Jeff King
@ 2012-04-27 0:41 ` Mark Jason Dominus
0 siblings, 0 replies; 5+ messages in thread
From: Mark Jason Dominus @ 2012-04-27 0:41 UTC (permalink / raw)
To: Jeff King; +Cc: git
Jeff King:
> Is the repository public? I can't reproduce the issue on a trivial test
> case, but it might be possible to create the original state of the
> client and server repos with judicious use of "reset" and "prune".
The repository has been heavily used since I made the report. If I
notice the same behavior againb, I will try to capture the repo state
for investigation.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-27 1:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 16:53 git-push sent too many objects Mark Jason Dominus
2012-04-18 7:59 ` Shawn Pearce
2012-04-18 14:22 ` Mark Jason Dominus
2012-04-26 13:07 ` Jeff King
2012-04-27 0:41 ` Mark Jason Dominus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).