improve missing repository error message
Certain remote commands, when asked to do something in a particular directory that was not actually a git repository, would say "unable to chdir or not a git archive". The "chdir" bit is an unnecessary detail, and the term "git archive" is much less common these days than "git repository". So let's switch them all to: fatal: '%s' does not appear to be a git repository Signed-off-by: Jeff King <peff@peff.net> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
aec0c1bbfb
commit
05ac6b34e2
@ -645,7 +645,7 @@ int main(int argc, char **argv)
|
||||
dir = argv[i];
|
||||
|
||||
if (!enter_repo(dir, strict))
|
||||
die("'%s': unable to chdir or not a git archive", dir);
|
||||
die("'%s' does not appear to be a git repository", dir);
|
||||
if (is_repository_shallow())
|
||||
die("attempt to fetch/clone from a shallow repository");
|
||||
if (getenv("GIT_DEBUG_SEND_PACK"))
|
||||
|
Reference in New Issue
Block a user