# git://HOSTNAME/REPO.git
# git://HOSTNAME/~TILDE/REPO.git
+$HOSTNAME = qr{[-.0-9a-z]+};
+$TILDE = qr{[0-9a-z]+};
+$REPO = qr{[-+._0-9A-Za-z]+};
+
# The vhost_default_user hash specifies what user handles git requests
# for each virtual host, if the URL does not have a tilde part, or if
# the virtual host does not appear in the vhost_user_from_tilde hash.