8000 setup: suggest 'git init' when no repository is found by NotUnHackable · Pull Request #2235 · git/git · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1881,14 +1881,16 @@ const char *setup_git_directory_gently(int *nongit_ok)
break;
case GIT_DIR_HIT_CEILING:
if (!nongit_ok)
die(_("not a git repository (or any of the parent directories): %s"),
die(_("not a git repository (or any of the parent directories): %s\n"
"See also the 'git init' command for initializing a new repository."),
DEFAULT_GIT_DIR_ENVIRONMENT);
*nongit_ok = 1;
break;
case GIT_DIR_HIT_MOUNT_POINT:
if (!nongit_ok)
die(_("not a git repository (or any parent up to mount point %s)\n"
"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."),
"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n"
"See also the 'git init' command for initializing a new repository."),
dir.buf);
*nongit_ok = 1;
break;
Expand Down
Loading