Bug #818
[git] git:// URLs don't work for personal repositories.
Status:
open
Priority:
bug
Assignee:
% Done:
0%
Description
Indicates that git-daemon is mis-configured.
History
Updated by lukeshu over 8 years ago
So the issue is that git-daemon is trying to be too smart.
Desired transaction:
Client: please send me ~lukeshu/nshd.git Daemon: --base-path=/srv/git, so I'm looking up /srv/git/~lukeshu/nshd.git
but instead what happens is
Daemon: Oh! The path starts with a tilde, so I should look up in that user's home directory, instead of in --base-path. But wait, --user-path isn't set, so I shouldn't go to his home directory. Ha, security-breaker! You haven't fooled me, I'll reject the request! You can't trick me into serving a user's home directory!
When it obviously should just look in base-path if --user-path isn't enabled, instead of killing the request.
Updated by lukeshu about 8 years ago
- Subject changed from git:// URL doesn't work for ~lukeshu/nshd.git, presumably other repositories too. to [projects] git:// URLs don't work for personal repositories.
Updated by lukeshu about 7 years ago
- Subject changed from [projects] git:// URLs don't work for personal repositories. to [git] git:// URLs don't work for personal repositories.