Re: [RFC PATCH] Move git-dir for submodules
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 22, 2011, 20:30 UTC
- Message-ID
- <7v62muys6l.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110722190223.GA27076@kolya>
Fredrik Gustafsson <iveqy@iveqy.com> writes:
Show 9 quoted lines
>> I wonder if we want a new option to "git rev-parse" so that we can say >> >> git rev-parse --is-well-formed-git-dir init/.git >> >> to perform these checks without exposing the implimentation detail. > > How about using > (cd <repo>; git rev-parse --verify HEAD" >/dev/null) > instead?
Can the <repo> be without any commit, i.e. just after created?