]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'kl/allow-working-in-dot-git-in-non-bare-repository'
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jan 2024 21:34:12 +0000 (13:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jan 2024 21:34:12 +0000 (13:34 -0800)
The "disable repository discovery of a bare repository" check,
triggered by setting safe.bareRepository configuration variable to
'explicit', has been loosened to exclude the ".git/" directory inside
a non-bare repository from the check.  So you can do "cd .git &&
git cmd" to run a Git command that works on a bare repository without
explicitly specifying $GIT_DIR now.

* kl/allow-working-in-dot-git-in-non-bare-repository:
  setup: allow cwd=.git w/ bareRepository=explicit

1  2 
setup.c

diff --cc setup.c
Simple merge