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

git clone, hardlinks and multiple users?

From
MHMarc Herbert <marc.herbert+news@gmail.com>
Date
Jan 20, 2012, 17:31 UTC
Message-ID
<jfc8eh$ck5$1@dough.gmane.org>
Hi,
   "git clone" is using hardlinks by default, even when cloning from a 
different user. In such a case the clone ends up with a number of files 
owned by someone else.

Since only immutable objects are cloned this seems to work fine. However I would like to know if this "multiple users" case works by chance or by specification.

In other words, is there a guarantee that no later version of git or no obscure option I haven't used yet will ever try to touch a hardlink in any way like for instance: trying update some metadata timestamp or, overwrite it with the same value by lack of optimization, or any other kind of side-effect that would obviously fail.

Thanks in advance!
Marc
Next: Neal Kreitzinger
Message 1 of 3 in “git clone, hardlinks and multiple users?”
  1. Marc HerbertJan 20, 2012
  2. Neal KreitzingerJan 21, 2012
  3. Marc HerbertJan 23, 2012

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.