{"thread":{"id":"3251","subject":"problem with gitweb I don't understand","startedAt":"2006-02-06T21:35:27Z","lastAt":"2006-02-06T22:47:49Z","messageCount":2,"participants":["Alan Chandler"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"15641","messageId":"200602062135.27652.alan@chandlerfamily.org.uk","threadId":"3251","inReplyTo":null,"subject":"problem with gitweb I don't understand","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2006-02-06T21:35:27Z","receivedAt":"2006-02-06T21:35:27Z","isPatch":false,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"I am running with a (slightly) modified version of gitweb.  The only \nmodifications are to allow it to pick up my site header and footer.\n\nI have just added a new project \"txpg.git\" to the directory where all my git \nprojects are stored for public display.  This was some old code that I \npackaged up into a repository.  There are two disconnected branches - \"orig\" \nwhich contains the initial check-in of the original code I started with, and \n\"master\" which is also an initial check-in but of the result after some \nincomplete hacking.  HEAD is a symlink I made manually to point to master.\n\nI have been able to clone this (via git:// protocol) add a tag, and then with \na post-update hook in the repository successfully generate a tarball of the \ncode using git-tar-tree when pushing a tag using ssh.  So I am pretty \nconfident I have a real repository\n\nBut gitweb is not displaying it (see http://www.chandlerfamily.org.uk/git).\n\nHowever if I do http://www.chandlerfamily.org.uk/git/?p=txpg.git;a=summary\n\nthe error message I get is \"403 Forbidden - No such project.\"  whereas if I \nhad used any random characters for the project I would have got \"403 \nForbidden - No such directory\"\n\nLooking at the gitweb code, all I can see is the non-existance of the HEAD \nfile as causing this error.  but it is definately there as seen from the \nfollowing output.\n\nalan@roo git$ find . -name HEAD\n./txpg.git/HEAD\n./gitweb.git/HEAD\n./border.git/HEAD\n./blog.git/HEAD\n./famtree.git/HEAD\n./akcmoney.git/HEAD\nalan@roo git$ pwd\n/var/lib/git\nalan@roo git$ ls -l akcmoney.git/HEAD\nlrwxrwxrwx  1 alan git 17 Jan 29 19:14 akcmoney.git/HEAD -> refs/heads/master\nalan@roo git$ ls -l txpg.git/HEAD\nlrwxrwxrwx  1 alan git 17 Feb  6 19:48 txpg.git/HEAD -> refs/heads/master\n\nSo I am stumped as to what could be wrong.\n\nAnyone any ideas.\n\n\n\n\n\n\n-- \nAlan Chandler\nhttp://www.chandlerfamily.org.uk\nOpen Source. It's the difference between trust and antitrust.\n"},{"id":"15645","messageId":"200602062247.49690.alan@chandlerfamily.org.uk","threadId":"3251","inReplyTo":"200602062135.27652.alan@chandlerfamily.org.uk","subject":"Re: problem with gitweb I don't understand","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2006-02-06T22:47:49Z","receivedAt":"2006-02-06T22:47:49Z","isPatch":false,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"On Monday 06 February 2006 21:35, Alan Chandler wrote:\n...>\n> But gitweb is not displaying it (see http://www.chandlerfamily.org.uk/git).\n>\n> However if I do http://www.chandlerfamily.org.uk/git/?p=txpg.git;a=summary\n>\n> the error message I get is \"403 Forbidden - No such project.\"  whereas if I\n> had used any random characters for the project I would have got \"403\n> Forbidden - No such directory\"\n\nCracked it.  I set repository permissions using the following (from the \ntutorial)\n\nfind repo.git -type d -print | xargs chmod ug+rwx,g+s\n\nbut directories need o+x as well so that the web server can read the refs\n\n\n-- \nAlan Chandler\nhttp://www.chandlerfamily.org.uk\nOpen Source. It's the difference between trust and antitrust.\n"}]}