{"thread":{"id":"57495","subject":"[BUG] fetch/pull -h ABORT out of a git repo","startedAt":"2022-03-02T10:45:56Z","lastAt":"2022-03-02T19:23:11Z","messageCount":3,"participants":["lilinchao@oschina.cn","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"450074","messageId":"2022030218445028804916@oschina.cn","threadId":"57495","inReplyTo":null,"subject":"[BUG] fetch/pull -h ABORT out of a git repo","fromName":"lilinchao@oschina.cn","fromEmail":"lilinchao@oschina.cn","sentAt":"2022-03-02T10:45:50Z","receivedAt":"2022-03-02T10:45:56Z","isPatch":false,"sender":{"key":"lilinchao@oschina.cn","avatar":null},"body":"Hi,\n\nWhen I run git fetch -h or git pull -h out side of a git repo, I can't get any help message\nbut some bug messages:\n\n\"$ git pull -h                                                                                                                            \nBUG: repo-settings.c:21: Cannot add settings for uninitialized repository\n[1]    17589 abort      git pull -h\n\n$ git pull -h\nBUG: repo-settings.c:21: Cannot add settings for uninitialized repository\n[1]    17737 abort      git pull -h\n\"\n\nApparently, the process aborted unexpectedly. I think this is a BUG.\n\nThis was introduced after v2.34.1, the related commits are:\n\n5a4e0547e2386f9bf0565316d7b751fe9459898b\n44c7e62e51e504c060844360fc56b613cfc1beea\n\n\n--------------\nlilinchao@oschina.cn"},{"id":"450076","messageId":"2022030219025261342425@oschina.cn","threadId":"57495","inReplyTo":"2022030218445028804916@oschina.cn","subject":"Re: [BUG] fetch/pull -h ABORT out of a git repo","fromName":"lilinchao@oschina.cn","fromEmail":"lilinchao@oschina.cn","sentAt":"2022-03-02T11:07:46Z","receivedAt":"2022-03-02T11:07:53Z","isPatch":false,"sender":{"key":"lilinchao@oschina.cn","avatar":null},"body":"\n>Apparently, the process aborted unexpectedly. I think this is a BUG.\n>\n>This was introduced after v2.34.1, the related commits are:\n>\n>5a4e0547e2386f9bf0565316d7b751fe9459898b\n>44c7e62e51e504c060844360fc56b613cfc1beea\n\nSince I found more commands will abort, I think the main relevant\ncommit is 44c7e62e [1]\n\n[1]:\nhttps://lore.kernel.org/git/fd28be71ca47a71b224a5b08cb81f903ada6a2bd.1638806161.git.gitgitgadget@gmail.com/"},{"id":"450157","messageId":"xmqqczj4kvl8.fsf@gitster.g","threadId":"57495","inReplyTo":"2022030219025261342425@oschina.cn","subject":"Re: [BUG] fetch/pull -h ABORT out of a git repo","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-03-02T19:22:59Z","receivedAt":"2022-03-02T19:23:11Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"lilinchao@oschina.cn\" <lilinchao@oschina.cn> writes:\n\n>>Apparently, the process aborted unexpectedly. I think this is a BUG.\n>>\n>>This was introduced after v2.34.1, the related commits are:\n>>\n>>5a4e0547e2386f9bf0565316d7b751fe9459898b\n>>44c7e62e51e504c060844360fc56b613cfc1beea\n>\n> Since I found more commands will abort, I think the main relevant\n> commit is 44c7e62e [1]\n>\n> [1]:\n> https://lore.kernel.org/git/fd28be71ca47a71b224a5b08cb81f903ada6a2bd.1638806161.git.gitgitgadget@gmail.com/\n\nThanks; I think the fix 059fda19 (checkout/fetch/pull/pack-objects:\nallow `-h` outside a repository, 2022-02-08) is already in the\n'master/main' branch.\n\n\n\n"}]}