From: Junio C Hamano Date: Sun, 21 Aug 2011 18:54:02 GMT Subject: Re: [PATCH 1/2] clone: allow to clone from .git file 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 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?