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

symlinked directories in refs are now unreachable

From
MDMatt Draisey <mattdraisey@sympatico.ca>
Date
Aug 15, 2005, 02:41 UTC
Message-ID
<1124073677.27393.15.camel@della.draisey.ca>

The behaviour of the symlinked in ref directories has changed from earlier versions of git. They used to be taken into account in git-fsck-cache --unreachable. The code in question would simply stat the contents of .git/refs and recursively expand any S_ISDIR. Now the code does an lstat and effectively throws symlinks away.

refs.c lines 48,52 @ do_for_each_ref
...
	memcpy(path + baselen, de->d_name, namelen+1);
	if (lstat(git_path("%s", path), &st) < 0)
		continue;
	if (S_ISDIR(st.st_mode)) {
		retval = do_for_each_ref(path, fn);
...
Can the previous behaviour be reinstated?
Next: Linus Torvalds
Message 1 of 9 in “symlinked directories in refs are now unreachable”
  1. Matt DraiseyAug 15, 2005
  2. Linus TorvaldsAug 15, 2005
  3. Junio C HamanoAug 15, 2005
  4. Matt DraiseyAug 15, 2005
  5. Matt DraiseyAug 17, 2005
  6. Junio C HamanoAug 16, 2005
  7. Matt DraiseyAug 15, 2005
  8. Junio C HamanoAug 17, 2005
  9. Matt DraiseyAug 18, 2005

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.