Re: [PATCH 1/2] clone: allow to clone from .git file
From: Junio C Hamano <hidden> Date: 2016-06-15 22:51:51
Nguyễn Thái Ngọc Duy [off-list ref] 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?