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.