{"thread":{"id":"31351","subject":"[PATCH] Improve \"Not a git repository\" error messages","startedAt":"2012-08-25T03:33:41Z","lastAt":"2012-08-25T03:33:41Z","messageCount":1,"participants":["travis.carden@gmail.com"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"197806","messageId":"1345865621-6941-1-git-send-email-travis.carden@gmail.com","threadId":"31351","inReplyTo":null,"subject":"[PATCH] Improve \"Not a git repository\" error messages","fromName":"","fromEmail":"travis.carden@gmail.com","sentAt":"2012-08-25T03:33:41Z","receivedAt":"2012-08-25T03:33:41Z","isPatch":true,"sender":{"key":"travis.carden@gmail.com","avatar":"https://gravatar.com/avatar/c55ed0dc1d2e7df0158d61a56358e5299a38cdcc3728d513ce335382de9b94fe?d=mp&s=160"},"body":"From: Travis Carden <travis.carden@gmail.com>\n\nThe former messages changed grammatical subject in the middle.\n\nSigned-off-by: Travis Carden <travis.carden@gmail.com>\n---\nThis is my first attempt at contributing to the Git project.\nI'm kind of testing the water with a simple patch to see how\nfriendly the community is. Thanks!\n\n setup.c |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/setup.c b/setup.c\nindex 9139bee..0cd88e5 100644\n--- a/setup.c\n+++ b/setup.c\n@@ -599,7 +599,7 @@ static const char *setup_bare_git_dir(char *cwd, int offset, int len, int *nongi\n static const char *setup_nongit(const char *cwd, int *nongit_ok)\n {\n \tif (!nongit_ok)\n-\t\tdie(\"Not a git repository (or any of the parent directories): %s\", DEFAULT_GIT_DIR_ENVIRONMENT);\n+\t\tdie(\"Not a git repository (or a descendant of one): %s\", DEFAULT_GIT_DIR_ENVIRONMENT);\n \tif (chdir(cwd))\n \t\tdie_errno(\"Cannot come back to cwd\");\n \t*nongit_ok = 1;\n@@ -706,7 +706,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)\n \t\t\t\t\treturn NULL;\n \t\t\t\t}\n \t\t\t\tcwd[offset] = '\\0';\n-\t\t\t\tdie(\"Not a git repository (or any parent up to mount point %s)\\n\"\n+\t\t\t\tdie(\"Not a git repository (or a descendant of one up to mount point %s)\\n\"\n \t\t\t\t\"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\", cwd);\n \t\t\t}\n \t\t}\n-- \n1.7.9.5\n"}]}