# no `bare = true' in `config' of a bare repository - problem or ignore?

2 messages from 2008-06-16 to 2008-06-17. Participants: Brian Foster, Johannes Schindelin.
Thread: https://gitlist.dev/t/13979

## Brian Foster, 2008-06-16 12:36

Subject: no `bare = true' in `config' of a bare repository - problem or ignore?
Message-ID: <200806161436.37278.brian.foster@innova-card.com>
URL: https://gitlist.dev/e/200806161436.37278.brian.foster%40innova-card.com

```

 Whilst investigating a (probably unrelated) mystery,
 I noticed that some of my bare git repositories had:

	[core]
 	    bare = true

 whilst others did not (they had no `bare' setting at
 all).  All, with or without `bare', seem to be quite
 happy, but I was wondering what's going on;  is this
 a problem;  and if not, is there any point to adding
 the setting anyways?

 As to _why_ some do and some don't, I haven't a clew,
 but suspect the ones that do NOT were originally made
 with an (unknown) older version of git;  and the ones
 that do were made with git 1.5.3 or later.

 The git-config(1) man page (1.5.5) doesn't directly
 mention this, only talking about auto-guessing the
 value on init and clone.  Apologies if TFM explains;
 I didn't spot anything.

cheers!
	-blf-

-- 
“How many surrealists does it take to   | Brian Foster
 change a lightbulb? Three. One calms   | somewhere in south of France
 the warthog, and two fill the bathtub  |   Stop E$$o (ExxonMobil)!
 with brightly-coloured machine tools.” |      http://www.stopesso.com

```

## Johannes Schindelin, 2008-06-17 09:25

Subject: Re: no `bare = true' in `config' of a bare repository - problem or ignore?
Message-ID: <alpine.DEB.1.00.0806171024060.6439@racer>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0806171024060.6439%40racer
In-Reply-To: <200806161436.37278.brian.foster@innova-card.com>

```
Hi,

On Mon, 16 Jun 2008, Brian Foster wrote:

>  Whilst investigating a (probably unrelated) mystery,
>  I noticed that some of my bare git repositories had:
> 
> 	[core]
>  	    bare = true
> 
>  whilst others did not (they had no `bare' setting at
>  all).

It's a historical thing: this setting was not present in older Git.  
Basically, we still have some autodetection ignoring the absence of 
core.bare.

Shouldn't be a problem.

Ciao,
Dscho

```
