]> git.parisson.com Git - mezzo.git/commitdiff
[docker] : update hook post_checkout
authorEmilie Zawadzki <emilie.zawadzki@ircam.fr>
Tue, 13 Nov 2018 16:06:56 +0000 (17:06 +0100)
committerEmilie Zawadzki <emilie.zawadzki@ircam.fr>
Tue, 13 Nov 2018 16:06:56 +0000 (17:06 +0100)
hooks/post_checkout

index 18dafc1d4364bfbf507ffd2616bc654d25787f86..9cc82b0a70b9238708a15d4d2f272d333af8da86 100644 (file)
@@ -1,18 +1,3 @@
 #!/bin/bash
 
-curr_branch=$(git symbolic-ref --short HEAD)
-
-echo $curr_branch
-if [ $curr_branch != "master" ] && [ $curr_branch != "dev" ];
-then
-    curr_branch="dev"
-fi
-
-# checkout new submodule
-git submodule update --init
-# Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules
-git submodule sync
-# Checkout all submodules on right branches specified in .gitmodules, by default the branch is master
-git submodule foreach --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch-'$curr_branch' || echo master)'
-# Pull all submodules on right branches specified in .gitmodules, by default the branch is master
-git submodule foreach --recursive 'git pull origin $(git config -f $toplevel/.gitmodules submodule.$name.branch-'$curr_branch' || echo master)'
+./bin/dev/update.sh
\ No newline at end of file