* Junio C Hamano <gitster@xxxxxxxxx> [09-02-17 01:51]:
Nicolas Sebrecht <nicolas.s-dev@xxxxxxxxxxx> writes:
The message
"Not inside a git repository"
of Wincent looks like the clearest and the fairest one.
I tend to agree. I was only trying to see if we can salvage a more
precise diagnosis f66bc5f (Always show which directory is not a git
repository, 2008-12-22) tried to give users, but to do it throughly the
sentence will become even more awkward.
"Not inside a bare git repository nor a work tree that has .git/ somewhere in it."
I think f66bc5f used the wrong path for the error message.
If the comment above this part of the code is accurate, cwd
is which should be belonging to a git repository, so I would suggest
die("Not inside a git repository: %s", cwd)
- Lars.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html