threads / bug / 19790

Bug: receive.denyCurrentBranch fails if core.bare unset

Subject: Bug: receive.denyCurrentBranch fails if core.bare unset

## tl;dr

One message between Jun 12, 2009 and Jun 12, 2009.

replies: 0people: 1as markdown or json

Alban Crequy· Jun 12, 2009, 15:53 UTC · lore
Hi,

When I set "receive.denyCurrentBranch" to "refuse", it still have the behavior of ignore. On newly created repository, core.bare is always set, but I had a old non-bare repository where it is unset. With core.bare unset, rev-parse --is-bare-repository returns true in .git, but false in the worktree.

What should be the right fix for this problem? Adding in the documentation of receive.denyCurrentBranch that setting core.bare explicitely is highly recommended ?

Br, Alban

← back to recent threads