Re: [PATCH 1/2] clone: allow to clone from .git file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 21, 2011, 18:54 UTC
- Message-ID
- <7v7h66y4s5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1313927890-21227-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> + else if (S_ISREG(st.st_mode) && st.st_size > 8) {
> + /* Despite the name read_gitfile_gently can be
> + cruel on non .git file, check for signature
> + ourselves */Didn't somebody add "is this '.git' thing a valid git metadirectory?" API quite recently for exactly this?