{"thread":{"id":"53580","subject":"Git fetches whole repository and not just latest","startedAt":"2020-05-29T10:45:25Z","lastAt":"2020-05-30T11:17:19Z","messageCount":5,"participants":["Andy Shevchenko","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"398877","messageId":"CAHp75Ves8x9_1=fVo_+dB92GpAGLcbGVqeo2gjRbBnzTzM0uzg@mail.gmail.com","threadId":"53580","inReplyTo":null,"subject":"Git fetches whole repository and not just latest","fromName":"Andy Shevchenko","fromEmail":"andy.shevchenko@gmail.com","sentAt":"2020-05-29T10:45:10Z","receivedAt":"2020-05-29T10:45:25Z","isPatch":false,"sender":{"key":"andy.shevchenko@gmail.com","avatar":"https://gravatar.com/avatar/e7fccbe23f198167f8b4c119a3a8729d3cec5b3268293ffe07ee15a50c39938b?d=mp&s=160"},"body":"A bit of description what I have on my side.\nSo, I have a local repository which has many remotes added (~20 or\nso). Most of them are from the same Git server, but few are from\ndifferent servers.\n\nTo refresh the state of my local repository I run `git remote update\n-p`. One note that I'm behind the proxy. This schema works for few\nyears until out of a sudden (approximately  month ago) I have noticed\nthat Git started fetching whole repository instead of only latest\nstuff. Note, that the repositories in question are from the main\nserver. Yes, sometimes it goes well, sometimes some random repository\ngets downloaded in full.\n\nExample:\n\n(few days ago)\n\nFetching spi\nremote: Enumerating objects: 18064, done.\nremote: Counting objects: 100% (18064/18064), done.\nremote: Compressing objects: 100% (2784/2784), done.\nremote: Total 7343589 (delta 16227), reused 15523 (delta 15266),\npack-reused 7325525\nReceiving objects: 100% (7343589/7343589), 1.21 GiB | 2.36 MiB/s, done.\n\n(today)\n\nFetching spi\nremote: Enumerating objects: 822, done.\nremote: Counting objects: 100% (686/686), done.\nremote: Compressing objects: 100% (323/323), done.\nremote: Total 602 (delta 485), reused 358 (delta 279), pack-reused 0\nReceiving objects: 100% (602/602), 160.25 KiB | 896.00 KiB/s, done.\n\n(also today)\nFetching origin\nremote: Enumerating objects: 17806, done.\nremote: Counting objects: 100% (17806/17806), done.\nremote: Compressing objects: 100% (2681/2681), done.\nremote: Total 7343331 (delta 15992), reused 15321 (delta 15106),\npack-reused 7325525\nReceiving objects: 100% (7343331/7343331), 1.21 GiB | 7.59 MiB/s, done.\n\norigin, for example, almost everyday now gets in full (1.21 GiB!),\nwhile others have no pattern.\n\nI would like to know if it's problem of proxy, or that specific Git\nserver or is it (new) bug in Git?\n\n-- \nWith Best Regards,\nAndy Shevchenko\n"},{"id":"398893","messageId":"20200529172955.GA123244@google.com","threadId":"53580","inReplyTo":"CAHp75Ves8x9_1=fVo_+dB92GpAGLcbGVqeo2gjRbBnzTzM0uzg@mail.gmail.com","subject":"Re: Git fetches whole repository and not just latest","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2020-05-29T17:29:55Z","receivedAt":"2020-05-29T17:37:52Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi Andy,\n\nAndy Shevchenko wrote:\n\n> So, I have a local repository which has many remotes added (~20 or\n> so). Most of them are from the same Git server, but few are from\n> different servers.\n[...]\n> origin, for example, almost everyday now gets in full (1.21 GiB!),\n> while others have no pattern.\n>\n> I would like to know if it's problem of proxy, or that specific Git\n> server or is it (new) bug in Git?\n\nWhat Git version are you using?  Can you test 2.27.0-rc2?\n\nI believe this is fixed by\n\n\tcommit 2f0a093dd640e0dad0b261dae2427f2541b5426c\n\tAuthor: Jonathan Tan <jonathantanmy@google.com>\n\tDate:   Mon Apr 27 17:01:10 2020 -0700\n\n\t    fetch-pack: in protocol v2, reset in_vain upon ACK\n\nwhich is part of 2.27.0-rc0.\n\nThanks and hope that helps,\nJonathan\n"},{"id":"398900","messageId":"CAHp75VdTX=pJw6r=H=qfaDcv07n69uGQQ0TwrR0bACAx-OQAXQ@mail.gmail.com","threadId":"53580","inReplyTo":"20200529172955.GA123244@google.com","subject":"Re: Git fetches whole repository and not just latest","fromName":"Andy Shevchenko","fromEmail":"andy.shevchenko@gmail.com","sentAt":"2020-05-29T19:08:20Z","receivedAt":"2020-05-29T19:08:34Z","isPatch":false,"sender":{"key":"andy.shevchenko@gmail.com","avatar":"https://gravatar.com/avatar/e7fccbe23f198167f8b4c119a3a8729d3cec5b3268293ffe07ee15a50c39938b?d=mp&s=160"},"body":"On Fri, May 29, 2020 at 8:29 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n> Andy Shevchenko wrote:\n>\n> > So, I have a local repository which has many remotes added (~20 or\n> > so). Most of them are from the same Git server, but few are from\n> > different servers.\n> [...]\n> > origin, for example, almost everyday now gets in full (1.21 GiB!),\n> > while others have no pattern.\n> >\n> > I would like to know if it's problem of proxy, or that specific Git\n> > server or is it (new) bug in Git?\n>\n> What Git version are you using?\n\ngit version 2.26.2\n\n>  Can you test 2.27.0-rc2?\n\nIs there any deb package?\n\n> I believe this is fixed by\n>\n>         commit 2f0a093dd640e0dad0b261dae2427f2541b5426c\n>         Author: Jonathan Tan <jonathantanmy@google.com>\n>         Date:   Mon Apr 27 17:01:10 2020 -0700\n>\n>             fetch-pack: in protocol v2, reset in_vain upon ACK\n>\n> which is part of 2.27.0-rc0.\n>\n> Thanks and hope that helps,\n\nI'll try to allocate slot to test later, if there is deb available, I\ncan do it sooner.\n\nThanks!\n\n-- \nWith Best Regards,\nAndy Shevchenko\n"},{"id":"398902","messageId":"20200529192023.GC123244@google.com","threadId":"53580","inReplyTo":"CAHp75VdTX=pJw6r=H=qfaDcv07n69uGQQ0TwrR0bACAx-OQAXQ@mail.gmail.com","subject":"Re: Git fetches whole repository and not just latest","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2020-05-29T19:20:23Z","receivedAt":"2020-05-29T19:20:29Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Andy Shevchenko wrote:\n> On Fri, May 29, 2020 at 8:29 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n\n>> What Git version are you using?\n>\n> git version 2.26.2\n\nThanks, makes sense.\n\n>>  Can you test 2.27.0-rc2?\n>\n> Is there any deb package?\n\nYes, you can use the package from Debian unstable or experimental\n(https://tracker.debian.org/pkg/git).\n\nIf you're on Ubuntu, you can use\nhttps://launchpad.net/~git-core/+archive/ubuntu/candidate once it\nupdates (cc-ing the maintainers of the PPA in case they want to\ncomment on when that will be --- e.g. Git 2.27 is planned to come\nout this Monday).\n\nThanks,\nJonathan\n"},{"id":"398924","messageId":"CAHp75VcQWJNJ2cmKjzqepLvhtynDSYi+Cvp1e7k4kn06pAb6gQ@mail.gmail.com","threadId":"53580","inReplyTo":"20200529192023.GC123244@google.com","subject":"Re: Git fetches whole repository and not just latest","fromName":"Andy Shevchenko","fromEmail":"andy.shevchenko@gmail.com","sentAt":"2020-05-30T11:16:59Z","receivedAt":"2020-05-30T11:17:19Z","isPatch":false,"sender":{"key":"andy.shevchenko@gmail.com","avatar":"https://gravatar.com/avatar/e7fccbe23f198167f8b4c119a3a8729d3cec5b3268293ffe07ee15a50c39938b?d=mp&s=160"},"body":"On Fri, May 29, 2020 at 10:20 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n> Andy Shevchenko wrote:\n> > On Fri, May 29, 2020 at 8:29 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n\n...\n\n> >>  Can you test 2.27.0-rc2?\n> >\n> > Is there any deb package?\n>\n> Yes, you can use the package from Debian unstable or experimental\n> (https://tracker.debian.org/pkg/git).\n\nI run old version, noticed the bug, Ctrl+C immediately. Then I have\ninstalled rc2 and re-run without noticing the bug. Since it's only one\nrun, I can't be sure, but I'll definitely monitor the situation for a\nlong run. Thanks!\n\n-- \nWith Best Regards,\nAndy Shevchenko\n"}]}