Re: [PATCH v3] clone: error specifically with --local and symlinked objects
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 11, 2023, 17:13 UTC
- Message-ID
- <xmqqmt3e9wab.fsf@gitster.g>
- In-Reply-To
- <pull.1488.v3.git.git.1681232918484.gitgitgadget@gmail.com>
"Glen Choo via GitGitGadget" <gitgitgadget@gmail.com> writes:
> A quick reroll to fix the style issue Taylor spotted in v2 (good > catch!). I didn't spot this patch in 'next' or 'seen', so hopefully I'm > still in time :)
What I locally have, which is an amended version of v2, and this one differ like so:
diff --git a/builtin/clone.c b/builtin/clone.c index ae2db8535a..b42231758c 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -335,7 +335,6 @@ static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest, if (errno == ENOTDIR) { int saved_errno = errno; struct stat st; - if (!lstat(src->buf, &st) && S_ISLNK(st.st_mode)) die(_("'%s' is a symlink, refusing to clone with --local"), src->buf); So I'll keep my copy. Thanks anyway.