I was playing around with some of the information that rev-parse can
return and just tried --is-inside-work-tree to see what it would
return. As expected, in my working-dir $PROJ, it returns "true".
Same for within $PROJ/.git and $PROJ/dir_with_nothing_tracked
However, when I try "git rev-parse --is-inside-work-tree" outside my
repo, I get
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not
According to my reading of the docs/man-pages, I should get "false"
instead. Under what conditions should rev-parse return false?
In this case, I've got my user directories mounted on /home and a
test repo in $PROJ=/home/tim/tmp/g so the error occurs in /home/tim
and /home/tim/tmp but returns "true" in /home/tim/tmp/g
/home/tim/tmp/g/.git and /home/tim/tmp/g/dir_with_nothing_tracked
PS: running 18.104.22.168, FWIW, so if this has been fixed more recently,
I'd be happy to just get a "already fixed in $NEWER_REV".