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

Dangling copyright in git hook template

From
FTFrederic Tessier <ftessier@gmail.com>
Date
Jan 19, 2022, 17:51 UTC
Message-ID
<CAB7QKarvGGjNf-bvuKqwnAVT_wX_=J+Dh0-AEdKPdVMbkSzW3Q@mail.gmail.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) git init

What did you expect to happen? (Expected behavior) New repo initialized containing no copyright claims

What happened instead? (Actual behavior) New repo initialized with a copyright claim in .git/hooks/pre-rebase.sample: # Copyright (c) 2006, 2008 Junio C Hamano

What's different between what you expected and what actually happened? There is a file in the fresh repo (copied from the template file git-core/templates/hooks/pre-rebase.sample) which contains a copyright statement, moreover without any licence to use the file.

Anything else you want to add: This also happens upon running the 'git clone' command. This is an issue because when users clone a project, they are left with a copyrighted dependency (without any licence), even though the repository itself did not contain that file. This occurs tacitly, and users would be unknowingly violating the copyright if they happened to further convey the file.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.34.1

[Enabled Hooks]
Next: Junio C Hamano
Message 1 of 3 in “Dangling copyright in git hook template”
  1. Frederic TessierJan 19, 2022
  2. Junio C HamanoJan 19, 2022
  3. Frederic TessierJan 19, 2022

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.