aboutsummaryrefslogtreecommitdiff
path: root/git-update-superproject
blob: d58d416320042d40a31fe243b04f7fe6efe25fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Updates a superproject
#

# Parameters
BASENAME="`basename $0`"

# Check
if [ ! -e ".git" ]; then
  echo "$BASENAME: not a git repository"
  exit 1
fi

# Run
git pull $*
git submodule sync   --recursive
git submodule update --recursive --init
git submodules-checkout-branch