2

Something crazy is happening to me.

If you visit http://git.jshawl.com/, you'll see a single repo "testing.git", though if you click on "TXT" in the lower right corner, you can see another repo that is there "wordpress-theme"

Also, I know there repo is there because I can clone it git clone git@git.jshawl.com/boilerplates/wordpress-theme

what gives?

Here's a little more background info on my setup:

git.jshawl.com is hosted on Mac OS X, in the directory "/Users/git/repositories" (this was setup when I installed gitolite), I've got a VHOST that points to this directory. I also dropped my gitweb.cgi file into that directory.

My permissions on both the boilerplates directory and the wordpress-theme directory are 755 (rwxr-xr-x)

jshawl
  • 297
  • 2
  • 13

1 Answers1

0

Note: gitweb isn't for cloning.
It is for browsing.

Should you want to clone, you would have to define a custom root in your apache server config in order to call the gitolite-shell, with the GIT_HTTP_BACKEND defined and pointing to the git/libexec/git-core/git-http-backend cgi script (shipped with git) which allows for clone/push/pull over the web.

Here is an extract of what that would look like (see the full version here)

# GitHttp on @PORT_HTTP_HGIT@
Listen @PORT_HTTP_HGIT@
<VirtualHost @FQN@:@PORT_HTTP_HGIT@>
ServerName @FQN@
ServerAlias @HOSTNAME@
SetEnv GIT_PROJECT_ROOT @H@/repositories
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GITOLITE_HTTP_HOME @H@
ScriptAlias /hgit/ @H@/gitolite/bin/gitolite-shell/
SetEnv GIT_HTTP_BACKEND "@H@/usr/local/apps/git/libexec/git-core/git-http-backend"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Location /hgit>

In your case, it looks like the gitolite filter I decribed in my previous answer isn't completely in place. Just calling gitweb.cgi isn't enough.

It will display only the projects listed in your project.list file, but without any gitolite filter, the TXT link displays all the .git bare repo in your repositories directory.

VonC
  • 2,683
  • 5
  • 30
  • 49