Improve "Not a git repository" error messages
PATCH 1/1 Improve "Not a git repository" error messages
From: Travis Carden <[email protected]>
The former messages changed grammatical subject in the middle.
Signed-off-by Travis Carden <[email protected]>
---
This is my first attempt at contributing to the Git project. I'm kind of testing the water with a simple patch to see how friendly the community is. Thanks!
setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
setup.c +2 -2
@@ -599,7 +599,7 @@ static const char *setup_bare_git_dir(char *cwd, int offset, int len, int *nongistatic const char *setup_nongit (const char *cwd,int *nongit_ok) {if (!nongit_ok) -die ("Not a git repository (or any of the parent directories): %s" ,DEFAULT_GIT_DIR_ENVIRONMENT ); +die ("Not a git repository (or a descendant of one): %s" ,DEFAULT_GIT_DIR_ENVIRONMENT );if (chdir (cwd))die_errno ("Cannot come back to cwd" ); *nongit_ok =1 ;
@@ -706,7 +706,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)return NULL ; } cwd[offset] ='\0' ; -die ("Not a git repository (or any parent up to mount point %s)\n" +die ("Not a git repository (or a descendant of one up to mount point %s)\n" "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)." , cwd); } }
Signature · 1 line
1.7.9.5