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
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Mar 22, 2015, 17:56 UTC
Message-ID
<CACBZZX67igE67+y7Tme=_OC7JiT726qB4X18+8Mvg1ewssQ_ug@mail.gmail.com>
In-Reply-To
<E1YZNn7-0002Lc-7O@rmm6prod02.runbox.com>
On Sat, Mar 21, 2015 at 7:06 PM, David A. Wheeler <dwheeler@dwheeler.com> wrote:
Show 9 quoted lines
> Warn cloners if there is no LICENSE* or COPYING* file that makes
> the license clear.  This is a useful warning, because if there is
> no license somewhere, then local copyright laws (which forbid many uses)
> and terms of service apply - and the cloner may not be expecting that.
> Many projects accidentally omit a license, so this is common enough to note.
> For more info on the issue, feel free to see:
> http://choosealicense.com/no-license/
> http://www.wired.com/2013/07/github-licenses/
> https://twitter.com/stephenrwalli/status/247597785069789184

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, but having it configured via the user/system config might be an interesting feature.

If you're still interested in getting this functionality perhaps a patch to have some general post-clone hook mechanism would be accepted, then you could check license files or anything else you cared about.

You could also just have a shell alias that wrapped git-clone...
Previous: Ævar Arnfjörð BjarmasonNext: David A. Wheeler
Message 7 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.