git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Make a non-bare repo bare.

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jul 17, 2009, 03:59 UTC
Message-ID
<2e24e5b90907162059u5e3dfca1x16cd57b0a10a7204@mail.gmail.com>
In-Reply-To
<7vd4808iey.fsf@alter.siamese.dyndns.org>
On Fri, Jul 17, 2009 at 2:17 AM, Junio C Hamano<gitster@pobox.com> wrote:
> Mike Ralphson <mike.ralphson@gmail.com> writes:
>> http://git.or.cz/gitwiki/GitFaq#HowdoImakeexistingnon-barerepositorybare.3F
Show 8 quoted lines
> Somebody needs to promise to keep that entry up-to-date, or we should
> rewrite it so that we do not expose such an implementation detail.
>
> Even today core.bare is not the only difference between a repository with
> a work tree and a bare one.  We also set core.logallrefupdates these days
> for a repository with a work tree, so the procedure described there is
> already stale.  And this kind of implementation details are bound to
> change.

I wonder why core.logAllRefUpdates is not the default for bare repos. I have taken to making that the _global_ default on any git/gitosis server I install, so all my bare repos have it turned on.

My reason is that I do want to allow "push -f" (it _is_ sometimes needed), but I also want to protect against such push happening in error, and the reflog has always seemed like a good safety net to run to when that happens.

Other than space (due to garbage collection delay until reflog expire) what are the downsides? Could someone enlighten me if I'm doing something stupid here?

Thanks,
Sitaram
Previous: Junio C HamanoNext: Sitaram Chamarty
Message 9 of 13 in “Make a non-bare repo bare.”
  1. Tim VisherJul 15, 2009
  2. Paolo BonziniJul 15, 2009
  3. Tim VisherJul 16, 2009
  4. Jeff KingJul 16, 2009
  5. Junio C HamanoJul 16, 2009
  6. Graeme GeldenhuysJul 16, 2009
  7. Mike RalphsonJul 16, 2009
  8. Junio C HamanoJul 16, 2009
  9. Sitaram ChamartyJul 17, 2009
  10. Sitaram ChamartyJul 16, 2009
  11. Tim VisherJul 16, 2009
  12. Junio C HamanoJul 16, 2009
  13. Sitaram ChamartyJul 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.