I would like to automate the creation of symlinks to people's public_git directories on Fedora People. The symlinks would take the form
/git/$user -> /home/fedora/$user/public_git
Having these symlinks would make urls to git repositories on fedorapeople.org much simpler and would look like:
git://fedorapeople.org/git/$user/$repo.git
instead of:
git://fedorapeople.org/home/fedora/$user/public_git/$repo.git
I can't think of any downsides... The symlinks wouldn't take up much disk space, they wouldn't allow access to anything new, and wouldn't take much processing power to keep updates. A test run ran in under a second. Of course, the cron job would run as a normal user for extra safety. The script that I wrote is attached to ticket 1058:
https://fedorahosted.org/fedora-infrastructure/ticket/1058
On Thu, Dec 18, 2008 at 2:53 PM, Roland McGrath roland@redhat.com wrote:
git://fedorapeople.org/git/$user/$repo.git
instead of:
git://fedorapeople.org/home/fedora/$user/public_git/$repo.git
You can already use:
git://fedorapeople.org/git/~$user/$repo.git
Oops, that's:
git://fedorapeople.org/~$user/$repo.git
Well, blow me down! I guess nevermind about my script!
2008/12/18 Ricky Zhou ricky@fedoraproject.org:
On 2008-12-18 02:54:49 PM, Jeffrey Ollie wrote:
Well, blow me down! I guess nevermind about my script!
I think your script could still be useful for cloning over SSH.
Hmm yes, the ~$user does not seem to work with ssh:// urls.
Jeffrey Ollie wrote:
2008/12/18 Ricky Zhou ricky@fedoraproject.org:
On 2008-12-18 02:54:49 PM, Jeffrey Ollie wrote:
Well, blow me down! I guess nevermind about my script!
I think your script could still be useful for cloning over SSH.
Hmm yes, the ~$user does not seem to work with ssh:// urls.
It does work, but you have to add the public_git part of the path. The following URLs are all valid¹:
git://fedorapeople.org/~tmz/git-package.git ssh://fedorapeople.org/~tmz/public_git/git-package.git http://tmz.fedorapeople.org/git/git-package.git
If adding the symlinks removes the difference between the git:// and ssh:// URLs, that would a nice improvement.
¹ Per https://fedoraproject.org/wiki/Infrastructure/fedorapeople.org, the http:// URL requires a symlink from ~/public_html/git to ~/public_git.
infrastructure@lists.fedoraproject.org