Skip to content

Commit f4d9846

Browse files
committed
Revert "setup: suggest 'git init' when no repository is found"
This reverts commit b068be7.
1 parent b068be7 commit f4d9846

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,16 +1881,14 @@ const char *setup_git_directory_gently(int *nongit_ok)
18811881
break;
18821882
case GIT_DIR_HIT_CEILING:
18831883
if (!nongit_ok)
1884-
die(_("not a git repository (or any of the parent directories): %s\n"
1885-
"See also the 'git init' command for initializing a new repository."),
1884+
die(_("not a git repository (or any of the parent directories): %s"),
18861885
DEFAULT_GIT_DIR_ENVIRONMENT);
18871886
*nongit_ok = 1;
18881887
break;
18891888
case GIT_DIR_HIT_MOUNT_POINT:
18901889
if (!nongit_ok)
18911890
die(_("not a git repository (or any parent up to mount point %s)\n"
1892-
"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n"
1893-
"See also the 'git init' command for initializing a new repository."),
1891+
"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."),
18941892
dir.buf);
18951893
*nongit_ok = 1;
18961894
break;

0 commit comments

Comments
 (0)