Created
February 20, 2009 08:42
-
-
Save hugowetterberg/67380 to your computer and use it in GitHub Desktop.
Post-receive-hook that updates the working dir and updates submodules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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