Lines Matching +full:git +full:- +full:submodule
4 # the COPYING file in the top-level directory.
6 substat=".git-submodule-status"
12 test -z "$maybe_modules" && exit 0
13 test -z "$GIT" && GIT=$(command -v git)
18 if ! test -e ".git"; then
19 no_git_error='no git checkout exists'
20 elif test -z "$GIT"; then
21 no_git_error='git binary not found'
25 test -z "$no_git_error"
31 echo "Unable to automatically checkout GIT submodules '$modules'."
32 echo "If you require use of an alternative GIT binary (for example to"
34 echo "GIT submodule checkout with:"
36 echo " $ ./configure --disable-download"
40 echo " $ GIT='tsocks git' scripts/git-submodule.sh update $modules"
47 echo "GIT submodules checkout is out of date, and submodules"
49 echo " scripts/git-submodule.sh update $maybe_modules"
51 echo " --enable-download"
58 CURSTATUS=$($GIT submodule status $module)
64 test -e $substat || touch $substat
68 $GIT submodule status $m 1> /dev/null 2>&1
72 grep $m $substat > /dev/null 2>&1 || $GIT submodule status $module >> $substat
74 echo "warn: ignoring non-existent submodule $m"
86 elif ! (set xyz "$module"/* && test -e "$2"); then
100 $GIT submodule update --init $modules 1>/dev/null
101 test $? -ne 0 && update_error "failed to update modules"
106 (while read -r REPLY; do
114 $GIT submodule status $modules
115 … test $? -ne 0 && update_error "failed to save git submodule status" >&2) < $substat > $substat.new
116 mv -f $substat.new $substat