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

[BUG?] git-daemon 2.49.0 in F40 no longer exports user directories

From
RORussell King (Oracle) <linux@armlinux.org.uk>
Date
Jul 25, 2025, 16:11 UTC
Message-ID
<aIOslkzu-x8K9o_C@shell.armlinux.org.uk>
Hi,

While I've been away on holiday over the last three weeks, my co-admin updated ZenIV to Fedora 40, and now I find that git-daemon no longer exports my "public_git" directory. My attempts at debugging this have failed - I tried adding strace to the git@.service but I get nothing. This is a regression.

Having spent quite a while trying to get to the bottom of this and failing, I'm reaching out for some help - especially given the proximity of the kernel merge window opening this weekend.

The log indicates:

Jul 25 16:56:55 ZenIV git-daemon[4046439]: [4046439] Extended attribute "host": git.armlinux.org.uk Jul 25 16:56:55 ZenIV git-daemon[4046439]: [4046439] Extended attribute "protocol": version=2 Jul 25 16:56:55 ZenIV git-daemon[4046439]: [4046439] Request upload-pack for '~rmk/linux-arm.git/' Jul 25 16:56:55 ZenIV git-daemon[4046439]: [4046439] userpath <public_git>, request <~rmk/linux-arm.git/>, namlen 4, restlen 15, slash </linux-arm.git/> Jul 25 16:56:55 ZenIV git-daemon[4046439]: [4046439] '~rmk/public_git/linux-arm.git': not in directory list

It seems to detect that it's a user path, and adds the "public_git" --user-path to it, but it seems to fail to translate ~rmk into /home/rmk.

/etc/gitconfig contains:
[safe]
        directory = /var/lib/git/git.armlinux.org.uk/*
        directory = /home/rmk/public_git/*
and /lib/systemd/system/git@.service contains:

[Unit] Description=Git Repositories Server Daemon Documentation=man:git-daemon(1)

[Service]
User=nobody
ExecStart=-/usr/libexec/git-core/git-daemon --base-path=/var/lib/git --export-all \
          --user-path=public_git --inetd --log-destination=stderr --verbose
StandardInput=socket
StandardError=journal
Any ideas what is necessary to fix it?
Thanks.
-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Next: Jeff King
Message 1 of 5 in “[BUG?] git-daemon 2.49.0 in F40 no longer exports user directories”
  1. Russell King (Oracle)Jul 25, 2025
  2. Jeff KingJul 26, 2025
  3. Todd ZullingerJul 26, 2025
  4. Jeff KingJul 27, 2025
  5. Russell King (Oracle)Jul 27, 2025

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.