bug: 'core.logallrefupdates' is not set by default in non-bare repository
- From
- doak <doak@gmx.de>
- Date
- Aug 31, 2016, 08:09 UTC
- Message-ID
- <c46d36ef-3c2e-374f-0f2e-ffe31104e023@gmx.de>
Hi there,
If 'git init /path/to/repo' is called inside another repository with 'core.logallrefupdates' set to true, it will be not set by default in the created repository. This seems to be a bug. I am using Git v2.9.3 (Arch).
Steps to reproduce:
---------------------
git init t1
cd t1
# 'core.logallrefupdates' will not be set for 't2'.
git init ../t2
---------------------Stated from 'git-config(1)':
---------------------
core.logAllRefUpdates
[...]
This value is true by default in a repository that has a working directory associated with it, and false by default in a bare repository.
---------------------With best regards, doak