Skip to content

Instantly share code, notes, and snippets.

@perifer
Forked from hugowetterberg/post-receive
Created July 9, 2009 06:28
Show Gist options
  • Save perifer/143470 to your computer and use it in GitHub Desktop.
Save perifer/143470 to your computer and use it in GitHub Desktop.
#!/bin/sh
repo="`pwd`"
export GIT_DIR="$repo"
wd="`dirname $repo`"
echo "$repo"
echo "$wd"
cd "$wd"
git merge master
git submodule init
git submodule update
cd "$repo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment