]> Lady’s Gitweb - HOMEDIR/commit
Try to detect bare repositories with git
authorLady <redacted>
Sun, 5 Apr 2026 20:06:43 +0000 (16:06 -0400)
committerLady <redacted>
Sun, 5 Apr 2026 20:06:43 +0000 (16:06 -0400)
commitf5fa906adf4a643a4fefccb9cd613f055c491d529008bfe0f26ab9335d1241c9
treebf18495c8f27fd9b282f515ce1b6acc672fcae94fdbcf396001fb1df0a9aae24
parent25ecaf4403856e2d2bbce5cd76d71482e168be18366704fd4b68272ad8f857eb
Try to detect bare repositories with git

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.

Message-type: text/lesml
sh/git.sh
This page took 0.282588 seconds and 4 git commands to generate.