git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] clone: Warn if clone lacks LICENSE or COPYING file

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 3, 2015, 21:26 UTC
Message-ID
<xmqqtwwwgayd.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACBZZX67igE67+y7Tme=_OC7JiT726qB4X18+8Mvg1ewssQ_ug@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 7 quoted lines
> As others have indicated here this feature is really specific to a
> single lint-like use-case and doesn't belong in clone as a built-in
> feature.
>
> However perhaps an interesting generalization of this would be
> something like a post-clone hook, obviously you couldn't store that in
> .git/hooks/ like other githooks(5) since there's no repo yet,

Yes, and these things come from templates, and you can specify the template source location when running "git clone".

So I do not think anything is needed on our side and it's all doable with what the users already have, as long as we are talking about making it only an opt-in feature.

Which means
> You could also just have a shell alias that wrapped git-clone...
is also perfectly acceptable, I would think.
Previous: David A. WheelerNext: Kevin D
Message 9 of 10 in “clone: Warn if clone lacks LICENSE or COPYING file”
  1. clone: Warn if clone lacks LICENSE or COPYING fileDavid A. Wheeler, Mar 21, 2015
  2. Dennis KaarsemakerMar 21, 2015
  3. Stefan BellerMar 22, 2015
  4. Junio C HamanoMar 22, 2015
  5. David A. WheelerMar 23, 2015
  6. Ævar Arnfjörð BjarmasonMar 23, 2015
  7. Ævar Arnfjörð BjarmasonMar 22, 2015
  8. David A. WheelerApr 3, 2015
  9. Junio C HamanoApr 3, 2015
  10. Kevin DMar 26, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.