If a directory has a `refs´ subdirectory, it should be assumed that it
is a Git directory (either a bare one or a `.git´ directory in a
working tree).
These cases are now treated equivalently to those where a `.git´ file
or directory is present.
Ideally, this detection would walk the file tree upward (at least
until `${PSEUDDIR}´ is encountered).
But the current behaviour is good enough for the immediate usecases,
namely “updating git submodules” and “operating in bare git
directories”, which do not require further subdirectory support.