{"thread":{"id":"51968","subject":"bad error message - Not a git repository (or any of the parent directories): .git","startedAt":"2019-10-03T22:37:28Z","lastAt":"2019-10-04T09:33:54Z","messageCount":2,"participants":["Alexander Mills","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"383372","messageId":"CA+KyZp6MKqL0mz-iCHGEcvZi09P+GmS7QEogX10-2OJ5nMPDRA@mail.gmail.com","threadId":"51968","inReplyTo":null,"subject":"bad error message - Not a git repository (or any of the parent directories): .git","fromName":"Alexander Mills","fromEmail":"alexander.d.mills@gmail.com","sentAt":"2019-10-03T22:37:14Z","receivedAt":"2019-10-03T22:37:28Z","isPatch":false,"sender":{"key":"alexander.d.mills@gmail.com","avatar":"https://gravatar.com/avatar/8accf19b85aa1020f85582e1f001860f853ce55767c226545a0825a2fcd99f04?d=mp&s=160"},"body":"when running git commands outside of a git repo, we often see:\n\nfatal: Not a git repository (or any of the parent directories): .git\n\nsuch a lame message lol.\ncan we get an absolute path on this message in future git versions, eg:\n\nNot a git repository (or any of the parent directories): /home/ubuntu/xyz/.git\n\nty\n\n-alex\n\n-- \nAlexander D. Mills\nNew cell phone # (415)730-1805\nalexander.d.mills@gmail.com\n\nwww.linkedin.com/pub/alexander-mills/b/7a5/418/\n"},{"id":"383406","messageId":"nycvar.QRO.7.76.6.1910041125490.46@tvgsbejvaqbjf.bet","threadId":"51968","inReplyTo":"CA+KyZp6MKqL0mz-iCHGEcvZi09P+GmS7QEogX10-2OJ5nMPDRA@mail.gmail.com","subject":"Re: bad error message - Not a git repository (or any of the parent directories): .git","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-10-04T09:33:37Z","receivedAt":"2019-10-04T09:33:54Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Alexander,\n\nOn Thu, 3 Oct 2019, Alexander Mills wrote:\n\n> when running git commands outside of a git repo, we often see:\n>\n> fatal: Not a git repository (or any of the parent directories): .git\n>\n> such a lame message lol.\n\nAn equally ornery response might point out that reporting this as a bug\ninstead of providing a patch is probably just as \"lame\"... :-)\n\n> can we get an absolute path on this message in future git versions, eg:\n>\n> Not a git repository (or any of the parent directories): /home/ubuntu/xyz/.git\n\nJust clone https://github.com/git/git, then look for that error message:\n\n-- snip --\n$ git grep -A1 \"or any of the parent\" \\*.[ch]\nsetup.c:                        die(_(\"not a git repository (or any of the parent directories): %s\"),\nsetup.c-                            DEFAULT_GIT_DIR_ENVIRONMENT);\n-- snap --\n\nYou can then wrap the argument in that second line in `absolute_path()`,\nbuild (using `make -j$(nproc)` on Linux), and test (use\n`/path/to/git/bin-wrappers/git` instead of regular `git` to test without\ninstalling). Once everything works as you expect it, commit it.\n\nPlease make sure that your commit message focuses on answering the\nquestion \"why?\" more than on \"how?\", and that it wraps at <= 76 columns\nper line. Also do make sure to add your sign off\n(https://git-scm.com/docs/SubmittingPatches#sign-off).\n\nFinally send the patch to the mailing list for review. You can use\nGitGitGadget (https://gitgitgadget.github.io), submitGit\n(https://submitgit.herokuapp.com) or send it manually\n(https://github.com/git-for-windows/git/blob/master/CONTRIBUTING.md#submit-your-patch).\n\nCiao,\nJohannes\n\n> ty\n>\n> -alex\n>\n> --\n> Alexander D. Mills\n> New cell phone # (415)730-1805\n> alexander.d.mills@gmail.com\n>\n> www.linkedin.com/pub/alexander-mills/b/7a5/418/\n>\n"}]}