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

Re: [bug] Working files created in bare repository when pushing to a rewound bare repository

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 3, 2008, 21:29 UTC
Message-ID
<7v3atepph1.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071231072632.GA11451@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 15 quoted lines
> And then on top of this (plus one-liner fix I posted), as Ping Yin
> suggested, we can do:
>
> -- >8 --
> git-reset: default to --soft in a bare repo
>
> --mixed doesn't make sense, since we don't generally have an
> index.
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> This is a bit more contentious. There's no reason you can't have an
> index in a bare repo, and this is changing the behavior of those who do.
> They can always explicitly specify --mixed (since we haven't disallowed
> that), but it might break some scripts.

I'd prefer to error out if something does not make sense rather than defaulting differently depending on the bareness of the repository, but that is probably the matter of taste.

Please re-raise the issue post 1.5.4
Previous: Jeff KingNext: Junio C Hamano
Message 8 of 9 in “[bug] Working files created in bare repository when pushing to a rewound bare repository”
  1. Ping YinDec 31, 2007
  2. Jeff KingDec 31, 2007
  3. Ping YinDec 31, 2007
  4. Jeff KingDec 31, 2007
  5. Jeff KingDec 31, 2007
  6. Jeff KingDec 31, 2007
  7. Jeff KingDec 31, 2007
  8. Junio C HamanoJan 3, 2008
  9. Junio C HamanoDec 31, 2007

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.