{"thread":{"id":"41780","subject":"git fails updating submodule only if --quiet is specified","startedAt":"2016-03-22T15:02:24Z","lastAt":"2016-03-22T22:35:38Z","messageCount":8,"participants":["Marcus T","Stefan Beller","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"281430","messageId":"3E1D841C-7665-43DB-A0F8-99999C59C28D@googlemail.com","threadId":"41780","inReplyTo":null,"subject":"git fails updating submodule only if --quiet is specified","fromName":"Marcus T","fromEmail":"maddimax@googlemail.com","sentAt":"2016-03-22T15:02:24Z","receivedAt":"2016-03-22T15:02:24Z","isPatch":false,"sender":{"key":"maddimax@googlemail.com","avatar":null},"body":"Hello,\n\nI’m running into a nasty issue where “git submodule update —init” fails if I add “—quiet”\n\nFollowing you can find the output with GIT_TRACE=1:\n\nWITHOUT --quiet:\n\nGIT_TRACE=1 git submodule update --init --recursive\n15:51:48.248945 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive'\n15:51:48.249023 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive'\n15:51:48.256626 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n15:51:48.258494 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n15:51:48.260406 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n15:51:48.262940 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n15:51:48.264156 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n15:51:48.266637 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n15:51:48.268074 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n15:51:48.269913 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n15:51:48.271168 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n15:51:48.272422 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n15:51:48.274179 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n15:51:48.275445 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n15:51:48.276779 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n15:51:48.278362 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n15:51:48.279819 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n15:51:48.281192 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n15:51:48.282473 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n15:51:48.283788 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n15:51:48.285269 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n15:51:48.285337 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n15:51:48.285687 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n15:51:48.286453 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\nCloning into 'buildroot'...\n15:51:49.177856 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n15:51:49.178244 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n15:51:49.179806 git.c:344               trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\nremote: Counting objects: 200277, done.\nremote: Compressing objects: 100% (62420/62420), done.\n...\n\nWITH --quite:\n\nGIT_TRACE=1 git submodule update --init --recursive --quiet\n15:52:26.900568 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n15:52:26.900652 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n15:52:26.907761 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n15:52:26.909877 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n15:52:26.911766 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n15:52:26.914279 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n15:52:26.915488 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n15:52:26.917983 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n15:52:26.919504 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n15:52:26.921244 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n15:52:26.922619 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n15:52:26.923888 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n15:52:26.925650 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n15:52:26.926892 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n15:52:26.928230 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n15:52:26.929709 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n15:52:26.931220 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n15:52:26.932597 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n15:52:26.933867 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n15:52:26.935170 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n15:52:26.936660 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--quiet' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n15:52:26.936732 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n15:52:26.936965 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n15:52:26.937803 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n15:52:27.958503 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n15:52:27.958870 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n15:52:27.960447 git.c:344               trace: built-in: git 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\nfatal: The remote end hung up unexpectedly\nfatal: early EOF\nfatal: index-pack failed\nfatal: clone of 'git://git.busybox.net/buildroot' into submodule path 'buildroot' failed\n\n---------\ngit --version\ngit version 2.7.4\n\nAny help in tracking down the reason for this would be greatly appreciated.\n\nThanks,\nMarcus\n\n"},{"id":"281434","messageId":"219B1DC5-8379-4FD5-8739-D99890362769@googlemail.com","threadId":"41780","inReplyTo":"3E1D841C-7665-43DB-A0F8-99999C59C28D@googlemail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Marcus T","fromEmail":"maddimax@googlemail.com","sentAt":"2016-03-22T15:51:47Z","receivedAt":"2016-03-22T15:51:47Z","isPatch":false,"sender":{"key":"maddimax@googlemail.com","avatar":null},"body":"I did a bunch more investigation:\n\nMy original problem was that it would work on a terminal, but not when running under jenkins.\n\nTurns out the “-v” in the \"index-pack” step is whats leading to the error.\n\nI can reproduce the issue with the command \"git submodule update --init --recursive > out.txt 2>&1\"\n\nIt seems that the “-v” is dropped automatically by git if its not connected to a terminal.\n\nThis is only an issue for “git://“ urls. ssh and https seem to not be affected.\n\n\n\n> On 22 Mar 2016, at 16:02, Marcus T <maddimax@googlemail.com> wrote:\n> \n> Hello,\n> \n> I’m running into a nasty issue where “git submodule update —init” fails if I add “—quiet”\n> \n> Following you can find the output with GIT_TRACE=1:\n> \n> WITHOUT --quiet:\n> \n> GIT_TRACE=1 git submodule update --init --recursive\n> 15:51:48.248945 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive'\n> 15:51:48.249023 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive'\n> 15:51:48.256626 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n> 15:51:48.258494 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n> 15:51:48.260406 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n> 15:51:48.262940 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n> 15:51:48.264156 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n> 15:51:48.266637 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n> 15:51:48.268074 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n> 15:51:48.269913 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n> 15:51:48.271168 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n> 15:51:48.272422 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n> 15:51:48.274179 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n> 15:51:48.275445 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n> 15:51:48.276779 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n> 15:51:48.278362 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n> 15:51:48.279819 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n> 15:51:48.281192 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n> 15:51:48.282473 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n> 15:51:48.283788 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n> 15:51:48.285269 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n> 15:51:48.285337 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> 15:51:48.285687 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> 15:51:48.286453 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> Cloning into 'buildroot'...\n> 15:51:49.177856 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n> 15:51:49.178244 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n> 15:51:49.179806 git.c:344               trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n> remote: Counting objects: 200277, done.\n> remote: Compressing objects: 100% (62420/62420), done.\n> ...\n> \n> WITH --quite:\n> \n> GIT_TRACE=1 git submodule update --init --recursive --quiet\n> 15:52:26.900568 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n> 15:52:26.900652 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n> 15:52:26.907761 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n> 15:52:26.909877 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n> 15:52:26.911766 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n> 15:52:26.914279 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n> 15:52:26.915488 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n> 15:52:26.917983 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n> 15:52:26.919504 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n> 15:52:26.921244 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n> 15:52:26.922619 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n> 15:52:26.923888 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n> 15:52:26.925650 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n> 15:52:26.926892 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n> 15:52:26.928230 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n> 15:52:26.929709 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n> 15:52:26.931220 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n> 15:52:26.932597 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n> 15:52:26.933867 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n> 15:52:26.935170 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n> 15:52:26.936660 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--quiet' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n> 15:52:26.936732 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> 15:52:26.936965 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> 15:52:26.937803 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n> 15:52:27.958503 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n> 15:52:27.958870 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n> 15:52:27.960447 git.c:344               trace: built-in: git 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n> fatal: The remote end hung up unexpectedly\n> fatal: early EOF\n> fatal: index-pack failed\n> fatal: clone of 'git://git.busybox.net/buildroot' into submodule path 'buildroot' failed\n> \n> ---------\n> git --version\n> git version 2.7.4\n> \n> Any help in tracking down the reason for this would be greatly appreciated.\n> \n> Thanks,\n> Marcus\n> \n\n"},{"id":"281464","messageId":"CAGZ79kZaV3w5TM+FPORcFOdeCY8idCYV_yB4Vt5eSNVrNomp2w@mail.gmail.com","threadId":"41780","inReplyTo":"219B1DC5-8379-4FD5-8739-D99890362769@googlemail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-03-22T18:22:24Z","receivedAt":"2016-03-22T18:22:24Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Tue, Mar 22, 2016 at 8:51 AM, Marcus T <maddimax@googlemail.com> wrote:\n\ngit submodule was partially rewritten in v2.7 so I would assume that\nis some fallout from\nthere. (passing the wrong arguments at the wrong time/place)\n\nHowever lookingat your logs, I would suspect it is an error in git\nclone instead, as that is the\nlast command which has the --quiet flag passed through the stack.\n\n\n> I did a bunch more investigation:\n>\n> My original problem was that it would work on a terminal, but not when running under jenkins.\n>\n> Turns out the “-v” in the \"index-pack” step is whats leading to the error.\n>\n> I can reproduce the issue with the command \"git submodule update --init --recursive > out.txt 2>&1\"\n>\n> It seems that the “-v” is dropped automatically by git if its not connected to a terminal.\n> This is only an issue for “git://“ urls. ssh and https seem to not be affected.\n\nThat is what the transport protocol determines at\nhttps://github.com/git/git/blob/master/transport.c#L743\n\nI would expect that index-pack just works without -v instead of crashing.\n\n>\n>\n>\n>> On 22 Mar 2016, at 16:02, Marcus T <maddimax@googlemail.com> wrote:\n>>\n>> Hello,\n>>\n>> I’m running into a nasty issue where “git submodule update —init” fails if I add “—quiet”\n>>\n>> Following you can find the output with GIT_TRACE=1:\n>>\n>> WITHOUT --quiet:\n>>\n>> GIT_TRACE=1 git submodule update --init --recursive\n>> 15:51:48.248945 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive'\n>> 15:51:48.249023 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive'\n>> 15:51:48.256626 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n>> 15:51:48.258494 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n>> 15:51:48.260406 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n>> 15:51:48.262940 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n>> 15:51:48.264156 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n>> 15:51:48.266637 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n>> 15:51:48.268074 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n>> 15:51:48.269913 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n>> 15:51:48.271168 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n>> 15:51:48.272422 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n>> 15:51:48.274179 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n>> 15:51:48.275445 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n>> 15:51:48.276779 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n>> 15:51:48.278362 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n>> 15:51:48.279819 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n>> 15:51:48.281192 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n>> 15:51:48.282473 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n>> 15:51:48.283788 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n>> 15:51:48.285269 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n>> 15:51:48.285337 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> 15:51:48.285687 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> 15:51:48.286453 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> Cloning into 'buildroot'...\n>> 15:51:49.177856 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n>> 15:51:49.178244 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n>> 15:51:49.179806 git.c:344               trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 15895 on bre-build-linux' '--check-self-contained-and-connected'\n>> remote: Counting objects: 200277, done.\n>> remote: Compressing objects: 100% (62420/62420), done.\n>> ...\n>>\n>> WITH --quite:\n>>\n>> GIT_TRACE=1 git submodule update --init --recursive --quiet\n>> 15:52:26.900568 git.c:561               trace: exec: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n>> 15:52:26.900652 run-command.c:334       trace: run_command: 'git-submodule' 'update' '--init' '--recursive' '--quiet'\n>> 15:52:26.907761 git.c:344               trace: built-in: git 'rev-parse' '--git-dir'\n>> 15:52:26.909877 git.c:344               trace: built-in: git 'rev-parse' '--git-path' 'objects'\n>> 15:52:26.911766 git.c:344               trace: built-in: git 'rev-parse' '-q' '--git-dir'\n>> 15:52:26.914279 git.c:344               trace: built-in: git 'rev-parse' '--show-prefix'\n>> 15:52:26.915488 git.c:344               trace: built-in: git 'rev-parse' '--show-toplevel'\n>> 15:52:26.917983 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n>> 15:52:26.919504 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n>> 15:52:26.921244 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n>> 15:52:26.922619 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.update'\n>> 15:52:26.923888 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'dl'\n>> 15:52:26.925650 git.c:344               trace: built-in: git 'config' 'submodule.dl.url'\n>> 15:52:26.926892 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.dl.update'\n>> 15:52:26.928230 git.c:344               trace: built-in: git 'submodule--helper' 'list' '--prefix' ''\n>> 15:52:26.929709 git.c:344               trace: built-in: git 'submodule--helper' 'name' 'buildroot'\n>> 15:52:26.931220 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.url'\n>> 15:52:26.932597 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.branch'\n>> 15:52:26.933867 git.c:344               trace: built-in: git 'config' '-f' '.gitmodules' 'submodule.buildroot.branch'\n>> 15:52:26.935170 git.c:344               trace: built-in: git 'config' 'submodule.buildroot.update'\n>> 15:52:26.936660 git.c:344               trace: built-in: git 'submodule--helper' 'clone' '--quiet' '--prefix' '' '--path' 'buildroot' '--name' 'buildroot' '--url' 'git://git.busybox.net/buildroot' '' ''\n>> 15:52:26.936732 run-command.c:334       trace: run_command: 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> 15:52:26.936965 exec_cmd.c:120          trace: exec: 'git' 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> 15:52:26.937803 git.c:344               trace: built-in: git 'clone' '--no-checkout' '--quiet' '--separate-git-dir' '.git/modules/buildroot' 'git://git.busybox.net/buildroot' 'buildroot'\n>> 15:52:27.958503 run-command.c:334       trace: run_command: 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n>> 15:52:27.958870 exec_cmd.c:120          trace: exec: 'git' 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n>> 15:52:27.960447 git.c:344               trace: built-in: git 'index-pack' '--stdin' '--fix-thin' '--keep=fetch-pack 15936 on bre-build-linux' '--check-self-contained-and-connected'\n>> fatal: The remote end hung up unexpectedly\n>> fatal: early EOF\n>> fatal: index-pack failed\n>> fatal: clone of 'git://git.busybox.net/buildroot' into submodule path 'buildroot' failed\n>>\n>> ---------\n>> git --version\n>> git version 2.7.4\n>>\n>> Any help in tracking down the reason for this would be greatly appreciated.\n>>\n>> Thanks,\n>> Marcus\n>>\n>\n"},{"id":"281492","messageId":"CAGZ79kb0izRAZoQaDxTjKNz0VFEBqbkCSmro2pHm_kmLpJk0mw@mail.gmail.com","threadId":"41780","inReplyTo":"CAGZ79kZaV3w5TM+FPORcFOdeCY8idCYV_yB4Vt5eSNVrNomp2w@mail.gmail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-03-22T21:38:34Z","receivedAt":"2016-03-22T21:38:34Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Tue, Mar 22, 2016 at 11:22 AM, Stefan Beller <sbeller@google.com> wrote:\n> However lookingat your logs, I would suspect it is an error in git\n> clone instead, as that is the\n> last command which has the --quiet flag passed through the stack.\n\ngit clone --no-checkout --quiet --separate-git-dir tmp_gitdir\ngit://git.busybox.net/buildroot tmp_workdir\nfails as a standalone program as well, so let's debug that.\n"},{"id":"281494","messageId":"CAGZ79kZAMwZz3w-shT_Z3itbKQWzhW2fmUzh=-gRg0Db7gRV6Q@mail.gmail.com","threadId":"41780","inReplyTo":"CAGZ79kb0izRAZoQaDxTjKNz0VFEBqbkCSmro2pHm_kmLpJk0mw@mail.gmail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-03-22T21:43:42Z","receivedAt":"2016-03-22T21:43:42Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Tue, Mar 22, 2016 at 2:38 PM, Stefan Beller <sbeller@google.com> wrote:\n> On Tue, Mar 22, 2016 at 11:22 AM, Stefan Beller <sbeller@google.com> wrote:\n>> However lookingat your logs, I would suspect it is an error in git\n>> clone instead, as that is the\n>> last command which has the --quiet flag passed through the stack.\n>\n> git clone --no-checkout --quiet --separate-git-dir tmp_gitdir\n> git://git.busybox.net/buildroot tmp_workdir\n> fails as a standalone program as well, so let's debug that.\n\nGIT_TRACE_PACKET=2 git clone --quiet --no-checkout --separate-git-dir\ntmp_gitdir git://git.busybox.net/buildroot tmp_workdir\n\n14:40:17.369362 pkt-line.c:80           packet:        clone>\ngit-upload-pack /buildroot\\0host=git.busybox.net\\0\n14:40:17.405792 pkt-line.c:80           packet:        clone<\n7e4dab488594021b012b1ef3b49772eece97b760 HEAD\\0multi_ack thin-pack\nside-band side-band-64k ofs-delta shallow no-progress include-tag\nmulti_ack_detailed symref=HEAD:refs/heads/master agent=git/2.7.3\n14:40:17.406765 pkt-line.c:80           packet:        clone<\n1264adda0ec0ec5edaff5e372b97972cee6ae33c refs/heads/2012.11.x\n14:40:17.406799 pkt-line.c:80           packet:        clone<\n8ab57bf9338f3a47683294aed6425f39828cbf80 refs/heads/2013.08.x\n14:40:17.406813 pkt-line.c:80           packet:        clone<\ne009e7d8615eec10d2c0c2676ef5a276f0a6a5e2 refs/heads/2015.08.x\n14:40:17.406826 pkt-line.c:80           packet:        clone<\n9f0610c188007ee481508d453b062d77614c153d refs/heads/2015.11.x\n14:40:17.406838 pkt-line.c:80           packet:        clone<\n7e4dab488594021b012b1ef3b49772eece97b760 refs/heads/master\n14:40:17.406851 pkt-line.c:80           packet:        clone<\n2dfabd10d1e484d84c0e6b5a58ab43d131ca3230 refs/heads/next\n14:40:17.406863 pkt-line.c:80           packet:        clone<\n72169f4a90a86b613a0d2be6217ccda5abf0b956 refs/tags/0_0\n14:40:17.406876 pkt-line.c:80           packet:        clone<\nffde94bd2ca21542ae0b4518348f8e986b9d92e0 refs/tags/0_0^{}\n... lots of ref advertisement...\n14:40:17.432352 pkt-line.c:80           packet:        clone<\nac0194b3d63f07bd7379f1f7ddfc2bbc69ab3272 refs/tags/2016.02-rc3\n14:40:17.432356 pkt-line.c:80           packet:        clone<\n100ba0f6d6b8020dd4d3ea8ffbfc7f1f3219a650 refs/tags/2016.02-rc3^{}\n14:40:17.432360 pkt-line.c:80           packet:        clone<\n09d8764e8ce7d00c3f2028e65187f5ff31155583 refs/tags/gcc3_legacy\n14:40:17.432365 pkt-line.c:80           packet:        clone<\n961229caf56a6a3e3bc9fd58805d8e83dd6a84ae refs/tags/gcc3_legacy^{}\n14:40:17.432369 pkt-line.c:80           packet:        clone< 0000\n14:40:17.436239 pkt-line.c:80           packet:        clone> want\n7e4dab488594021b012b1ef3b49772eece97b760 multi_ack_detailed\nside-band-64k thin-pack no-progress ofs-delta\nagent=git/2.7.4.1.g33fcf9d\n14:40:17.436258 pkt-line.c:80           packet:        clone> want\n1264adda0ec0ec5edaff5e372b97972cee6ae33c\n14:40:17.436268 pkt-line.c:80           packet:        clone> want\n8ab57bf9338f3a47683294aed6425f39828cbf80\n14:40:17.436277 pkt-line.c:80           packet:        clone> want\ne009e7d8615eec10d2c0c2676ef5a276f0a6a5e2\n...lots of wants...\n14:40:17.437114 pkt-line.c:80           packet:        clone> want\n4a5e4d74cbd91a4d9a166d38a90b5c444722cc92\n14:40:17.437121 pkt-line.c:80           packet:        clone> want\n2977653121ad046e8a229f22552d3ce547bfb511\n14:40:17.437128 pkt-line.c:80           packet:        clone> want\n834f73774a296a178b1ee550752abaa5dfcde29a\n14:40:17.437135 pkt-line.c:80           packet:        clone> want\n44eca8025060071a410e18df6eba446821ad9a5a\n14:40:17.437143 pkt-line.c:80           packet:        clone> want\nac0194b3d63f07bd7379f1f7ddfc2bbc69ab3272\n14:40:17.437150 pkt-line.c:80           packet:        clone> want\n09d8764e8ce7d00c3f2028e65187f5ff31155583\n14:40:17.437156 pkt-line.c:80           packet:        clone> 0000\n14:40:17.437387 pkt-line.c:80           packet:        clone> done\n14:40:17.488562 pkt-line.c:80           packet:        clone< NAK\nfatal: The remote end hung up unexpectedly\nfatal: early EOF\nfatal: index-pack failed\n\nWhen not giving --quiet, you'll see the client ask not for no-progress\ncapability in the first want line.\n"},{"id":"281497","messageId":"CAGZ79kaYT=Sj+boEqX=mdSM2+g7cwDQucQpyvO_KmcABBF=nAg@mail.gmail.com","threadId":"41780","inReplyTo":"CALgWkErHQ=coXRpzxY0jQoAN1pM-X9-UbPQUbNE56xhnb2VHfg@mail.gmail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2016-03-22T22:02:04Z","receivedAt":"2016-03-22T22:02:04Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Tue, Mar 22, 2016 at 2:59 PM, Marcus T <maddimax@googlemail.com> wrote:\n> I should mention that I first ran into the issue in Git 2.5.0. I updated to\n> 2.7.4 in the hopes that it had been fixed already.\n>\n\nDoes that ring a bell for anyone?\n"},{"id":"281502","messageId":"20160322222501.GA29577@sigill.intra.peff.net","threadId":"41780","inReplyTo":"CAGZ79kb0izRAZoQaDxTjKNz0VFEBqbkCSmro2pHm_kmLpJk0mw@mail.gmail.com","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-03-22T22:25:01Z","receivedAt":"2016-03-22T22:25:01Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Mar 22, 2016 at 02:38:34PM -0700, Stefan Beller wrote:\n\n> On Tue, Mar 22, 2016 at 11:22 AM, Stefan Beller <sbeller@google.com> wrote:\n> > However lookingat your logs, I would suspect it is an error in git\n> > clone instead, as that is the\n> > last command which has the --quiet flag passed through the stack.\n> \n> git clone --no-checkout --quiet --separate-git-dir tmp_gitdir\n> git://git.busybox.net/buildroot tmp_workdir\n> fails as a standalone program as well, so let's debug that.\n\nI think you can simplify this quite a bit to just:\n\n  git clone --quiet git://git.busybox.net/buildroot\n\nThat breaks, but works without --quiet. Presumably the problem is on the\nserver side, as we see the remote end hang up (and using different\nversions of git on the client does not seem to help).\n\nIt seems to fail consistently for me around 2.4s, which makes me think\nwe're hitting some kind of timeout. I'd suspect a bug in the keep-alive\ncode in upload-pack, but that shouldn't have kicked in by then.\n\nI guess the next step is to try to reproduce with a local client/server,\nand then bisect the server version.\n\n-Peff\n"},{"id":"281506","messageId":"20160322223538.GA1158@sigill.intra.peff.net","threadId":"41780","inReplyTo":"20160322222501.GA29577@sigill.intra.peff.net","subject":"Re: git fails updating submodule only if --quiet is specified","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-03-22T22:35:38Z","receivedAt":"2016-03-22T22:35:38Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Mar 22, 2016 at 06:25:01PM -0400, Jeff King wrote:\n\n> I think you can simplify this quite a bit to just:\n> \n>   git clone --quiet git://git.busybox.net/buildroot\n> \n> That breaks, but works without --quiet. Presumably the problem is on the\n> server side, as we see the remote end hang up (and using different\n> versions of git on the client does not seem to help).\n> \n> It seems to fail consistently for me around 2.4s, which makes me think\n> we're hitting some kind of timeout. I'd suspect a bug in the keep-alive\n> code in upload-pack, but that shouldn't have kicked in by then.\n> \n> I guess the next step is to try to reproduce with a local client/server,\n> and then bisect the server version.\n\nThat server advertises that it's running v2.7.3. So I pulled down the\nrepo and tried reproducing with a local v2.7.3 run, but I can't get it\nto fail.\n\nI also tried tweaking uploadpack.keepalive down to 1 second to see if\nthat triggered anything, but again, nothing interesting.\n\nSo I'm not sure what the trick is to stimulating the failure. Is there\nany special config set up on that server or in that repository? Is it\npossible to get a tarball of the server repository, in case something in\nthe packing is relevant? I guess both of those would require contact\nwith the busybox.net admins.\n\n-Peff\n"}]}