Skip to content

Instantly share code, notes, and snippets.

@JAChapmanII
Created April 17, 2011 16:59
Show Gist options
  • Select an option

  • Save JAChapmanII/924228 to your computer and use it in GitHub Desktop.

Select an option

Save JAChapmanII/924228 to your computer and use it in GitHub Desktop.
Post update hook
#!/bin/sh
cd /tmp
TMP="`mktemp -d`"
cd $TMP
git clone -l $GL_REPO_BASE_ABS/$GL_REPO
rm -rf /srv/http/*
mv $GL_REPO/* /srv/http/
chmod -R go+rx /srv/http/*
rm -rf $TMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment