$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Setup A Git Http Server Read-only for Public Access

October 14, 2011 | By Duchateaux.
  1. Setup for a Hosted Remote Server
    You need SSH Access to the Server.

    ssh -p yourSSHAPort yourUserName@yourDomain
    cd path/To/yourProject.git
    mv hooks/post-update.sample hooks/post-update
    chmod a+x hooks/post-update

    Latest you need to make Git Aware of the New Setup by:

    git update-server-info

    You are Done!
    This is enough to activate the Public Http Access on Git Repository.

  2. Setup on Localhost
    Evidently your skip SSH Access :)
    After you completed all others Step as in Remote
    You need to Set an Appropriate Repository Group by:

    chgrp -R www-data path/To/yourProject.git/..

    And Restart Apache

Now everybody should be able to Clone your Repo over Http running:

git clone http://yourDomain/path/To/yourProject.git