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

Re: What commands can and can not be used with bare repositories?

From
Junio C Hamano <junkio@cox.net>
Date
Dec 31, 2006, 05:52 UTC
Message-ID
<7v3b6wk3wq.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20061231021248.GA26067@thunk.org>
Theodore Tso <tytso@mit.edu> writes:
> That makes sense, although the hueristic for determining whether or
> not "." is a Git repository might be a little interesting.  Say, if
> there is no containing directory which has a .git directory, and the
> directories "objects", "info", and "refs" are present?

We have something called is_bare_git_dir() that does much simpler and hacky check.

See my other message to Shawn regarding tradeoffs between possible improvements and backward compatibility.

Previous: Michael S. Tsirkin
Message 6 of 6 in “What commands can and can not be used with bare repositories?”
  1. Theodore Ts'oDec 31, 2006
  2. J. Bruce FieldsDec 31, 2006
  3. Shawn PearceDec 31, 2006
  4. Theodore TsoDec 31, 2006
  5. Michael S. TsirkinDec 31, 2006
  6. Junio C HamanoDec 31, 2006

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.