summaryrefslogtreecommitdiff
path: root/git/hooks/post-merge
blob: aeed930efdf03f363ff3c52925535d785b8b26f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Copy or symlink this into your .git/hooks directory.
# E.g., from the top:
#       ln -s ../../git/hooks/post-merge .git/hooks
# or    cp git/hooks/post-merge .git/hooks
# It may also be beneficial to install as a post-checkout hook

# If we have local changes in the submodule, rebase or merge them
# (rebase is better but dangerous in some circumstances)
# git submodule update --rebase
git submodule update --merge
make news

# WARNING: to people with push access.
# it is essential that changes to the client data be pushed before changes to server data
# Also, you may find this useful: (you should NEVER clone using the git:// url)
# git config --global url.git@github.com:.pushInsteadOf https://github.com